1 Introduction

It is well-known that our social environment affects our behaviour and our opinions about the world. Indeed, our traits, features, preferences, beliefs and knowledge are shaped by the (actual, imagined or implied) presence of others, with communication and social influence being two crucial ways our social contacts affect us. These phenomena, discussed originally in the empirical sciences (e.g., social psychology: Fiske et al. 2010), have recently acquired further relevance, due not only to the rise of artificial intelligence, but also to that of the internet and virtual societies. Thus, social environments and related phenomena have become a topic of study of the theoretical sciences (e.g., agent-based modelling: Shoham and Leyton-Brown 2009; network theories: Estrada 2011; social network analysis: Easley and Kleinberg 2010; McCulloh et al. 2013).

The traditional approach to the formal study of ‘in-group’ information dynamics is to use quantitative statistical modelling, a tradition going back to French (1956), with DeGroot (1974) and Lehrer and Wagner (1981) offering some of the most significant proposals. However, in recent years there have been new proposals studying the way agents affect one another from a logical perspective. These logic-based accounts tend to use qualitative tools instead of quantitative ones. Furthermore: instead of looking at ‘complex’ corpora of big data describing influence behaviour, they rely on relatively ‘simple’ models, using formal languages to describe general ‘complex’ patterns about the agents’ interaction.

The explicit exchange of information is one of the main driving forces of how our social environment affects us. Note that paradigmatic forms of communication have already been explored from a logical perspective (e.g., the public observations of Plaza 1989; Gerbrandy and Groeneveld 1997, the diverse forms of private ones of Baltag et al. 1998; Wang et al. 2010; Sietsma and van Eijck 2011, and the group communication of Baltag et al. 2018). Still, our opinions and information are also affected by subtler forms of interaction, such as socialisation, conformity, compliance, reactance and obedience (see, e.g., Nowak et al. 2013; Cialdini and Griskevicius 2010). These forms of social influence have recently also received attention from the logic community, with Seligman et al. (2011) one of the earliest proposals that makes use of an explicit representation of the agents’ social connections. Several other proposals have followed; those include, among several others, the analysis of peer pressure (Zhen and Seligman 2011), the study of informational cascades (Baltag et al. 2013), the modelling diffusion and prediction (Baltag et al. 2016), the examination of reflective social influence (Christoff et al. 2016) and the inspection of priority-based peer influence (Velázquez-Quesada 2017).

All these (empirical and theoretical) studies aim to show how a social environment can shape the agents that constitute it. However, within the logic community, the processes through which these groups are created has received almost no attention till now, as few works have discussed the different mechanisms that create and change the social networks themselves.Footnote 1

This proposal is part of an ongoing research programme by the authors, aiming at studying different methods that create and change social networks (Smets and Velázquez-Quesada 2018a). The initial step of this programme is to gain a deeper understanding, within a logical framework, about the abstract mechanisms that drive the different possible processes of network creation and network change. The final goal is to understand how these processes of network creation/change interact with processes of social influence. This is important, as it is the interplay between how the social group influences the individuals and how the individuals create and reshape social groups that indicates how a group and its members will behave.

So far, the main starting point in the programme’s proposals is that the evolution of a social network follows a similarity-based strategy: the more similar two agents are, the more likely it is for them to end up being socially connected.Footnote 2 Notions of similarity (in particular, when used for defining notions of distance) have been valuable for different logical frameworks. On the syntactic level, they have been used for knowledge basesFootnote 3 and belief revision (Alchourrón et al. 1985; Aiguier et al. 2018). On the semantic level, they have been used for representing information change, including methods for knowledge update (Baral and Zhang 2005), semantic forms of belief revision (Katsuno and Mendelzon 1992) and others (Bloch et al. 2018). Within the context of social network formation, the programme’s previous proposals have used a simple notion of distance among agents (measuring their dissimilarity: the number of basic traits in which they differ), which is then used to define the ranking each agent has on how similar to her the other agents are. This ranking is the basis for defining the emerging social network.Footnote 4 Indeed, while Smets and Velázquez-Quesada (2017b) uses this distance to create social networks based on a ‘threshold’ approach (an agent becomes connected with those who are at distance \(\theta \in \mathbb {N}\) or closer), Smets and Velázquez-Quesada (2017a) (and its extended version, Smets and Velázquez-Quesada 2019) uses it to create social networks based on a ‘group size’ approach (an agent becomes connected to the \(\lambda \in \mathbb {N}\) agents that are closer to her).

This paper explores two further ideas about how the similarities between agents are used to build a social network.

  • First, instead of relying on the described notion of distance, it relies on a notion of closeness, given by the traits the agents have in common. This reflects the idea that people may focus not on what distinguishes them, but rather on what they share. From a technical perspective, looking at the agent’s similarities instead of their differences also suggests other forms of using these concepts in order to decide whether two agents will become socially connected. For example, and as it will be discussed later, one can use different functions that involve the number of traits the agents have in common and the number of traits in which they differ. Each possibility enforces different properties in the resulting social network. But looking at similarities also reflect better what people and organisations tend to do.Footnote 5 A large collection of real-life scenarios in which closeness is what matters are those that require a matching between elements of two different sets. This includes, among several others, (i) donor and transplant programs, where the decision to assign an organ to a patient relies on some form of similarity between the patient and the donor (e.g., tissue type, blood type and body size), (ii) dating websites/apps, where the decision to pair up two persons relies on whether there are enough similarities between them (sexual orientation, location, preferred activities, etc.), (iii) matching between different kind of entities, as the way certain cities decide which primary school each child will attend (based on whether the child lives close to the school) and the way an institution selects the applicant to whom it will offer a position (based, e.g., on how similar the applicant and the institution research plans’ are, and how close is the applicant teaching experience to the institution’s needs).

  • Second, it refines the measurement by assuming that, for each agent, some traits might be more important than others. With this extension, one can represent and study situations with subjective distances, where two agents differing in only one trait (say, being vegetarian) might be judged as very similar by some viewer and as very different by another. Equally important, this allows the creation of asymmetric ‘friendships’, which are forbidden in most logical approaches to social networks, but occur regularly in both virtual societies and real life, leading to scenarios in which influence only goes in one direction. Examples of situations in which some features are more important than others include again cases as organ–patient matching (tissue type, blood type and body size are important, but distance from the location where the organ is recovered might turn to be a highly decisive factor, depending on how long the given organ can survive outside a body) and as institution-applicant pairing (a research institution might put more emphasis on research similarities).

These two ideas produce a novel way of measuring similarity between two agents, whose consequences are explored. The logical setting of this work makes use of the techniques of dynamic epistemic logic (DEL; Baltag et al. 1998; van Ditmarsch et al. 2008; van Benthem 2011) to represent network-creation actions, to define languages describing their effects, and to provide axiom systems. In particular, network creation is represented by model-update operations,Footnote 6 describing how a given input model (the original network) transitions into another (the network created when similar agents become connected). Using the DEL setting, we have the advantage of working within one logical system in which both the network properties and the actions on the network can be described in a uniform way. Hence, DEL provides a unique tool to specify the logical mechanisms of network creation and network change.

Outline. The text starts by introducing the notion of closeness between agents (Sect. 2.1). This initial stage assumes that all agents’ traits are equally relevant, so different traits can be thought of as having an equal ‘weight’. Later in the paper this assumption is changed: social network models are extended with individual priority orderings over traits (Sect. 2.2), thus obtaining a subjectively weighted extension of the simple closeness considered first. In both cases, properties of the resulting closeness concepts are studied. The paper then proceeds to define social network update operations that use the closeness alternative in a threshold fashion (Sects. 3 and 4). In both cases, the paper studies the relational properties of the generated network, showing how different assumptions can be made to generate networks with specific properties, presenting a formal language to describe the changes the operations bring about, and providing a sound and complete axiom system for it. The concluding notes (Sect. 5) give an overview of the results obtained, highlighting also several directions for future work.

2 Social network models and extended social network models

2.1 Social network models

Let \(\mathsf {A}\) denote a finite non-empty set of agents. Let \(\mathsf {T}\) be a finite set of traits (i.e., a collection of basic properties an agent might or might not have, called features in previous proposals).

Definition 1

(Social network model) A social network model (SNM) is a tuple \(M = \langle \mathsf {A}, S, V \rangle \) in which \(S\subseteq \mathsf {A}\times \mathsf {A}\) is the social relation (\({S}ab\) indicates that agent a considers agent b as one of her social contacts) and \(V:\mathsf {A}\rightarrow \wp ({\mathsf {T}})\) is a trait function (with \(V(a) \subseteq \mathsf {T}\) the set of traits agent a has). \(\blacktriangleleft \)

Thus, a SNM is nothing but a relational ‘Kripke’ model in which each element of the domain is interpreted as an agent, edges in the binary relation represent social connections (note: such relation does not need to satisfy any requirement), and the atomic valuation indicates the traits each agent has. In fact, a SNM is not only (i) a multi-trait generalisation of the basic setting of Baltag et al. (2016), which focusses on a single trait (called ‘behaviour’ in that paper), and thus defines V as a subset of \(\mathsf {A}\) (i.e., a function from \(\mathsf {A}\) to \(\wp ({\left\{ 1 \right\} })\)), but also, (ii) a special case of the more complex multi-trait and multi-value network models of Christoff and Hansen (2015).

A formal language. Following Baltag et al. (2016), a SNM can be described by a propositional language \(\mathcal {L}\), with special atoms describing the agents’ traits and their social relationship.

Definition 2

(Language\(\mathcal {L}\)) Formulas \(\varphi , \psi \) of the language \(\mathcal {L}\) are given by

$$\begin{aligned} \varphi ,\psi {::}{=} t_a \mid {\text {S}}_{ab} \mid \lnot \varphi \mid \varphi \wedge \psi \end{aligned}$$

with \(t \in \mathsf {T}\) and \(a,b \in \mathsf {A}\). Formulas of the form \(t_a\) are read as “agent a has trait t”, and those of the form \({\text {S}}_{ab}\) as “agent a considers agent b as a social connection” (or, alternatively, as “b is part a’s social network”). Boolean constants (\(\top , \bot \)) and other Boolean operators (\(\vee , \rightarrow , \leftrightarrow , \underline{\vee }\), the latter representing the exclusive disjunction) are defined as usual. Given a SNM\(M = \langle \mathsf {A}, S, V \rangle \), formulas in \(\mathcal {L}\) are semantically interpreted in the following way:

$$\begin{aligned} \begin{array}{lll} M \Vdash t_a &{}\;\;\text {iff}_{\text {def}}\;\;&{} t \in V(a), \\ M \Vdash {\text {S}}_{ab} &{}\;\;\text {iff}_{\text {def}}\;\;&{} Sab, \\ \end{array}&\qquad \begin{array}{lll} M \Vdash \lnot \varphi &{} \;\;\text {iff}_{\text {def}}\;\;&{} M \not \Vdash \varphi , \\ M \Vdash \varphi \wedge \psi &{} \;\;\text {iff}_{\text {def}}\;\;&{} M \Vdash \varphi \hbox { and }M \Vdash \psi . \\ \end{array} \end{aligned}$$

A formula \(\varphi \in \mathcal {L}\) is valid (notation: \(\Vdash \varphi \)) when \(M \Vdash \varphi \) holds for all M. \(\blacktriangleleft \)

Since there are no restrictions on the social relation nor on the trait function, any axiom system of classical propositional logic is fit to characterize syntactically the validities of \(\mathcal {L}\) over the class of social network models.

Differences and distance. Different criteria can be used to decide whether two agents will be socially related. This paper follows a similarity approach, under which the more similar two agents are, the more likely it is for them to end up in being socially connected. A natural formalisation of this idea, used in Smets and Velázquez-Quesada (2017a, b), relies on a notion of distance between agents, given by the number of traits in which they differ.Footnote 7

Definition 3

(Differences and distance) Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM. The set of traits distinguishing agents \(a, b \in \mathsf {A}\) in M (that is, their differences: the traits one of them has but the other does not) is given by

$$\begin{aligned} \textsc {diff}_{M}(a, b) {:=} \big (V(a) \setminus V(b)\big ) \cup \big (V(b) \setminus V(a)\big ). \end{aligned}$$

Then, the function \(\textsc {dist}_{M}: \mathsf {A}\times \mathsf {A}\rightarrow \mathbb {N}\), indicating the distance in M between any pair of agents, is given by

$$\begin{aligned} \textsc {dist}_{M}(a, b) {:=} \mathopen {\vert } \textsc {diff}_{M}(a, b) \mathclose {\vert }. \end{aligned}$$

\(\blacktriangleleft \)

As observed in Smets and Velázquez-Quesada (2017b), \(\textsc {dist}_{}\) satisfies the following properties.

Proposition 1

Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM; take any \(a,b,c \in \mathsf {A}\). Then,

  • Non-negativity (the distance from a to b is non-negative):

    $$\begin{aligned} \textsc {dist}_{M}(a, b) \ge 0. \end{aligned}$$

    In fact, in this \(\mathopen {\vert } \mathsf {T} \mathclose {\vert }\)-dimensional setting in which agents can be distinguished only by elements of \(\mathsf {T}\),

    $$\begin{aligned} \mathopen {\vert } \mathsf {T} \mathclose {\vert } \ge \textsc {dist}_{M}(a, b) \ge 0. \end{aligned}$$
  • Symmetry (the distance from a to b is equal to that from b to a):

    $$\begin{aligned} \textsc {dist}_{M}(a, b) = \textsc {dist}_{M}(b, a). \end{aligned}$$
  • Reflexivity (the distance from any agent to herself is 0):

    $$\begin{aligned} \textsc {dist}_{M}(a, a) = 0. \end{aligned}$$
  • Subadditivity (the distance between two agents is smaller or equal than the sum of their distances with respect to a third one):

    $$\begin{aligned} \textsc {dist}_{M}(a, c) \le \textsc {dist}_{M}(a, b) + \textsc {dist}_{M}(b, c). \end{aligned}$$

\(\square \)

Then, \(\textsc {dist}_{}\) is not only a mathematical distance (non-negativity, symmetry and reflexivity) but also a semi-metric (it also satisfies subadditivity). Still, it is not a metric as it does not satisfy identity of indiscernibles: \(\textsc {dist}_{M}(a, b) = 0\) does not imply \(a = b\), as two different agents may have exactly the same traits.Footnote 8

Note also how other reasonable definitions of a notion of distance might not satisfy these properties. For example, one could think of defining a distance \(\textsc {dist'}_{}\) between a and b as the number of traits distinguishing them minus the number of traits they have in common. This alternative definition satisfies symmetry, but fails at non-negativity, reflexivity and subadditivity.Footnote 9

Similarities and closeness. Still, there are other alternatives for the similarity approach. A natural one is to relate two agents not when their differences are small enough, but rather when their similarities are large enough.

Definition 4

(Closeness) Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM. The set of common traits between agents \(a, b \in \mathsf {A}\) in M (that is, their similar traits: those both or neither have) is given by

$$\begin{aligned} \textsc {simi}_{M}(a, b) {:=} \big (V(a) \cap V(b)\big ) \cup \big (\overline{V(a)} \cap \overline{V(b)}\big ). \end{aligned}$$

with \(\overline{\mathsf {R}}\) the standard set complement of any \(\mathsf {R}\subseteq \mathsf {T}\) (with respect to \(\mathsf {T}\)). Then, the function \(\textsc {clos}_{M}: \mathsf {A}\times \mathsf {A}\rightarrow \mathbb {N}\), indicating how close are, in M, any two agents, is given by

$$\begin{aligned} \textsc {clos}_{M}(a, b) {:=} \mathopen {\vert } \textsc {simi}_{M}(a, b) \mathclose {\vert }. \end{aligned}$$

\(\blacktriangleleft \)

This concept of closeness is definable in terms of the distance of before.Footnote 10 However, looking at the situation from a similarity perspective suggests interesting alternatives (e.g., Definition 5). The just defined notion satisfies some properties deemed intuitive for a notion of similarity.

Proposition 2

Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM; take any \(a,b, b_1, b_2 \in \mathsf {A}\). Then,

  • Non-negativity (the closeness from a to b is non-negative):

    $$\begin{aligned} \textsc {clos}_{M}(a, b) \ge 0. \end{aligned}$$

    In fact, in this \(\mathopen {\vert } \mathsf {T} \mathclose {\vert }\)-dimensional setting in which the agents’ potential similarities are those in \(\mathsf {T}\),

    $$\begin{aligned} \mathopen {\vert } \mathsf {T} \mathclose {\vert } \ge \textsc {clos}_{M}(a, b) \ge 0. \end{aligned}$$
  • Symmetry (the closeness from a to b is equal to that from b to a):

    $$\begin{aligned} \textsc {clos}_{M}(a, b) = \textsc {clos}_{M}(b, a). \end{aligned}$$
  • Self-exhaustiveness (the closeness from any agent to herself is \(\mathopen {\vert } \mathsf {T} \mathclose {\vert }\)):

    $$\begin{aligned} \textsc {clos}_{M}(a, a) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }. \end{aligned}$$
  • ‘Supersubstractivity’ (the distance between two agents is larger or equal than the difference of their similarities with respect to a third one):

    $$\begin{aligned} \textsc {dist}_{M}(b_1, b_2) \ge \textsc {clos}_{M}(a, b_1) - \textsc {clos}_{M}(a, b_2). \end{aligned}$$

\(\square \)

Example 1

Consider a set of traits \(\mathsf {T}= \left\{ p, q, r \right\} \), together with a set of agents \(\mathsf {A}= \left\{ a, b, c, d \right\} \) such that

$$\begin{aligned} V(a) = \left\{ p, q, r \right\} , \qquad V(b) = \left\{ p, q \right\} , \qquad V(c) = \left\{ r \right\} , \qquad V(d) = \left\{ q, r \right\} . \end{aligned}$$

The following table shows the differences and similarities between some pairs of agents:

\(\textsc {diff}_{}(a, a) = \emptyset \),

\(\textsc {diff}_{}(b, c) = \left\{ p, q, r \right\} \),

\(\textsc {simi}_{}(a, a) = \mathsf {T}\),

\(\textsc {simi}_{}(b, c) = \left\{ \; \right\} \),

\(\textsc {diff}_{}(a, b) = \left\{ r \right\} \),

\(\textsc {diff}_{}(b, d) = \left\{ p, r \right\} \),

\(\textsc {simi}_{}(a, b) = \left\{ p, q \right\} \),

\(\textsc {simi}_{}(b, d) = \left\{ q \right\} \),

\(\textsc {diff}_{}(a, c) = \left\{ p, q \right\} \),

\(\textsc {diff}_{}(c, d) = \left\{ q \right\} \),

\(\textsc {simi}_{}(a, c) = \left\{ r \right\} \),

\(\textsc {simi}_{}(c, d) = \left\{ p, r \right\} \).

\(\textsc {diff}_{}(a, d) = \left\{ p \right\} \),

 

\(\textsc {simi}_{}(a, d) = \left\{ q, r \right\} \),

 

Then, the following diagrams show the agents together with the derived distances and closeness: \(\blacktriangleleft \)

figure a

Previous proposals have explored the definition of social networks using the notion of distance; this paper will rely rather on the notion of closeness.

It is worthwhile to note how looking at the situation from a similarity perspective suggests alternative definitions of closeness. While some of them might not satisfy all the listed properties, this ‘failure’ might still be reasonable for the concept of similarity. For example, Tversky (1977) argues that similarity statements of the form “a is like b” are directional, with a subject a and a referent b, and thus are not in general equivalent to symmetric statements “b is like a”: saying “an eclipse is like a circle” is not the same as saying “a circle is like an eclipse”. Thus, other definitions of closeness might still be sensible, as the one below in which the closeness between two agents is given by the number of traits they have in common minus the number of traits distinguishing them.

Definition 5

(Closeness bis) Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM. The alternative function \(\textsc {clos-bis}_{M}: \mathsf {A}\times \mathsf {A}\rightarrow \mathbb {N}\), indicating how close are, in M, any two agents, is given by

$$\begin{aligned} \textsc {clos-bis}_{M}(a, b) {:=} \mathopen {\vert } \textsc {simi}_{M}(a, b) \mathclose {\vert } - \mathopen {\vert } \textsc {diff}_{M}(a, b) \mathclose {\vert }. \end{aligned}$$

\(\blacktriangleleft \)

This alternative definition of closeness is a variation of the proposal in Tversky (1977), which rather defines a notion of similarity in terms of \(\textsc {simi}_{M}(a, b)\) and, separately, \(V(a) \setminus V(b)\) and \(V(b) {\setminus } V(a)\) (the last two comprised in \(\textsc {diff}_{M}(a, b)\) in this paper’s case).Footnote 11 It is not hard to see that it satisfies the following properties.

Proposition 3

Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM; take any \(a,b, b_1, b_2 \in \mathsf {A}\)

  • Symmetry (the closeness from a to b is equal to that from b to a):

    $$\begin{aligned} \textsc {clos-bis}_{M}(a, b) = \textsc {clos-bis}_{M}(b, a). \end{aligned}$$
  • Self-exhaustiveness (the closeness from any agent to herself is \(\mathopen {\vert } \mathsf {T} \mathclose {\vert }\)):

    $$\begin{aligned} \textsc {clos-bis}_{M}(a, a) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }. \end{aligned}$$
  • Monotonicity (closeness increases with addition of common traits and/or deletion of distinguishing traits):

    $$\begin{aligned} \left. \begin{array}{l} \textsc {simi}_{M}(a, b_1) \subseteq \textsc {simi}_{M}(a, b_2) \\ \text {and} \\ \textsc {diff}_{M}(a, b_2) \subseteq \textsc {diff}_{M}(a, b_1) \end{array} \right\} \quad \text {imply}\quad \textsc {clos-bis}_{M}(a, b_1) \le \textsc {clos-bis}_{M}(a, b_2). \end{aligned}$$

\(\square \)

The defined notions of distance and closeness rely on an important assumption: all traits are equally relevant for all agents, so a difference/similarity in a given trait has the same weight as a difference/similarity in any other. However, depending on the case we look at, we can as well think of scenarios in which some traits or features are more important than others. Maybe more crucial, this ‘degree of importance’ might differ from agent to agent.

2.2 Extended Social Network Models

This subsection introduces a new structure, an extended social network model, which asks for each agent to have a priority ordering over traits. These orderings reflect not only the different importance that different traits might have, but also the fact that different agents might give precedence to different traits.Footnote 12

Definition 6

(Extended social network model) An extended SNM , XSNM, is a tuple \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) in which \(\langle \mathsf {A}, S, V \rangle \) is a SNM (Definition 1) and each \({\preccurlyeq _{a}} \subseteq (\mathsf {T}\times \mathsf {T})\) is a total preorder (agent a’s priority ordering over traits), with \(t_1 \preccurlyeq _{a} t_2\) indicating that, for a, trait \(t_1\) is at most as important as trait \(t_2\). \(\blacktriangleleft \)

Thus, a XSNM is a SNM plus an additional model component. Hence, any SNM-notion (in particular, the sets \(\textsc {diff}_{}\) and \(\textsc {simi}_{}\), Definitions 3 and  4) can be equally defined for an XSNM. Note how, for every agent a, every two traits are comparable (by \(\preccurlyeq _{a}\)’s totality), some of them might be equally important (\(\preccurlyeq _{a}\) does not need to be antisymmetric) and there are maximum ones (by \(\mathsf {T}\)’s finiteness).

A formal language. In order to describe the additional semantic component of XSNMs, the language \(\mathcal {L}\) is extended with a(nother) special atomic proposition that will be used to describe the agents’ trait-priority ordering (cf. Holliday 2009; Ghosh and Velázquez-Quesada 2015; Velázquez-Quesada 2017).

Definition 7

(Language \(\mathcal {L}_{\sqsubseteq }\))

The language \(\mathcal {L}_{\sqsubseteq }\) extends \(\mathcal {L}\) (Definition 2) with atomic propositions of the form \(t_1\sqsubseteq _{a}t_2\) (with \(t_1, t_2 \in \mathsf {T}\) and \(a \in \mathsf {A}\)), read as “for agenta, trait\(t_1\)is at most as important as trait\(t_2\)”. Given an XSNM\(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \), these new atoms are semantically interpreted with respect to the given agent’s trait-priority ordering:

$$\begin{aligned} \begin{array}{lll} M \Vdash t_1\sqsubseteq _{a}t_2&\quad \text {iff}_{\text {def}}\quad&t_1 \preccurlyeq _{a} t_2, \end{array} \end{aligned}$$

As before, a formula \(\varphi \in \mathcal {L}_{\sqsubseteq }\) is valid (\(\Vdash \varphi \)) when \(M \Vdash \varphi \) holds for all M. \(\blacktriangleleft \)

For an axiomatisation, any propositional system is fit as long as it includes the following axioms, characterising the properties of the trait-priority ordering (totality, reflexivity and transitivity). For all \(a \in \mathsf {A}\) and all \(t_1, t_2, t_3 \in \mathsf {T}\),

$$\begin{aligned} \begin{array}{lll} \vdash t_1\sqsubseteq _{a}t_2 \;\vee \; t_2\sqsubseteq _{a}t_1,&\qquad \vdash t_1\sqsubseteq _{a}t_1,&\qquad \vdash (t_1\sqsubseteq _{a}t_2 \;\wedge \; t_2\sqsubseteq _{a}t_3) \;\rightarrow \; t_1\sqsubseteq _{a}t_3. \end{array} \end{aligned}$$

Subjective closeness. With the extra information provided by each agent’s trait priority ordering, it is possible to look not at the ‘objective’ notions of closeness of before (which consider all traits being equally important for all agents), but rather at a ‘subjective’ notion of closeness that depends not only on the set of traits the agents have in common, but also on how important these similarities (and differences) are for the agent who is making the judgement.Footnote 13 More precisely, the notion of closeness that will be used here is given by the weighted sum of the agents’ common traits, with this weight defined in terms of the given agent’s trait priority ordering.

In order to make this definition precise, note first how each priority ordering on traits \(\preccurlyeq _{a}\) induces an ordered sequence of subsets of \(\mathsf {T}\), each one containing traits that are, from a’s perspective, equally important.

Definition 8

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be an XSNM; take \(a \in \mathsf {A}\). By defining the notion of \(\preccurlyeq _{a}\)-maximum in the standard way (for every \(\mathsf {R}\subseteq \mathsf {T}\), take \({\text {max}}_{a}(\mathsf {R}) {:=} \left\{ t \in \mathsf {R}\mid t' \preccurlyeq _{a} t \,\,\text {for all}\,\, t' \in \mathsf {R} \right\} \)), each \(\preccurlyeq _{a}\) induces the following layers on (i.e., ordered sequence of subsets of) \(\mathsf {T}\) (for \(k \ge 0\)):

$$\begin{aligned} \mathscr {T}\;\!^{a}_{0} {:=} {\text {max}}_{a}(\mathsf {T}), \qquad \qquad \mathscr {T}\;\!^{a}_{k+1} {:=} {\text {max}}_{a}(\mathsf {T}\setminus \bigcup ^{k}_{i=0} \mathscr {T}\;\!^{a}_{i}) \end{aligned}$$

\(\blacktriangleleft \)

Thus, while \(\mathscr {T}\;\!^{a}_{0}\) contains the traits that are, from a’s perspective, the most important, \(\mathscr {T}\;\!^{a}_{1}\) contains her second most important traits, and so on. In fact, the layers define a quasi-partition: some of them might be empty, but nevertheless they are pairwise disjoint and collectively exhaustive. Moreover, since \(\mathsf {T}\) is finite, there will be a first empty layer (say, \(\mathscr {T}\;\!^{a}_{\ell _a}\)), and from that moment on all layers will be empty. In symbols, there is a \(\ell _a > 0\) (as \(\mathsf {T}\ne \emptyset \)) such that \(\mathscr {T}\;\!^{a}_{k} \ne \emptyset \) for \(0 \le k <\ell _a\), and \(\mathscr {T}\;\!^{a}_{k} = \emptyset \) for \(k \ge \ell _a\).

As sketched above, this proposal’s strategy is to assign a weight to each trait, and then define the closeness between two agents as the weighted sum of the traits they have in common. There are two natural requirements for such an assignment \(\textsc {wei}_{}\). First, traits in the same layer should receive the same weight (so equally important traits have the same similarity effect); second, the layers’ order should be respected (so a similarity in a more important trait is more significant than a similarity in a less important one). More precisely, (i) if \(t_1, t_2 \in \mathscr {T}\;\!^{a}_{k}\), then \(\textsc {wei}_{a}(t_1) = \textsc {wei}_{a}(t_2)\); (ii) if \(t_1 \in \mathscr {T}\;\!^{a}_{k_1}\) and \(t_2 \in \mathscr {T}\;\!^{a}_{k_2}\) for \(0 \le k_1 \le k_2\), then \(\textsc {wei}_{a}(t_2) \le \textsc {wei}_{a}(t_1)\).

Here, \(\textsc {wei}_{a}\) will be defined as a function from a layer’s number to a natural number. In order to simplify its definition, it will be assumed that the ‘gap in importance’ between traits in adjacent layers is simply 1.

Definition 9

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be an XSNM. Take \(a \in \mathsf {A}\), and let \(\ell _a\) be the index of the first empty layer generated by \(\preccurlyeq _{a}\) (i.e., \(\mathscr {T}\;\!^{a}_{k} \ne \emptyset \) for \(0 \le k <\ell _a\), and \(\mathscr {T}\;\!^{a}_{k} = \emptyset \) for \(k \ge \ell _a\)). The function \(\textsc {wei}_{a}: \left\{ 0, \ldots , \ell _a-1 \right\} \rightarrow \mathbb {N}\) is defined as

$$\begin{aligned} \textsc {wei}_{a}(k) {:=} \ell _a - k \end{aligned}$$

\(\blacktriangleleft \)

Here are some relevant points about this function.

  • It is straightforward to see that it satisfies the two natural requirements described above, the first because the function is from layers to \(\mathbb {N}\), and the second because the higher the layer \(\mathscr {T}\;\!^{a}_{k}\), the smaller its index k, and thus the larger the weight of its elements, \(\ell _a - k\).

  • With this definition, while the weight of the most important traits from a’s perspective (those in \(\mathscr {T}\;\!^{a}_{0}\)) is \(\ell _a\), the weight of the least important ones (those in \(\mathscr {T}\;\!^{a}_{\ell _a - 1}\)) is 1, so they still count.

  • The weight received by traits in \(\mathscr {T}\;\!^{a}_{0}\) emphasises the relativeness. On the one hand, if all traits are equally important for a (i.e., if \(\mathscr {T}\;\!^{a}_{0} = \mathsf {T}\)), then they all receive a weight of 1 (\(\textsc {wei}_{a}(0) = 1\)). On the other hand, if some traits are strictly more important than others (i.e., if \(\mathscr {T}\;\!^{a}_{0} \subset \mathsf {T}\)), then the most important ones will have a greater weight (\(\textsc {wei}_{a}(0) > 1\)).Footnote 14

Of course, there are other alternatives for \(\textsc {wei}_{}\). For example, one can assign a weight of 0 to the least important traits, then move up increasing the weight of each layer by some \(g \in \mathbb {N}\) until the most important traits are reached. One can also use more general assignments, with gaps of different size between different layers. One could even use a more ‘personal’ function, with these gaps between layers differing from agent to agent. For simplicity, here the same weight assignment will be used for all agents. Still, being a function from layers to natural numbers, with the layers potentially different from agent to agent, this yields a subjective weighted measure of any subset of \(\mathsf {T}\).

Definition 10

(Weighted measure) Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be an XSNM; take \(a \in \mathsf {A}\) and \(\mathsf {R}\subseteq \mathsf {T}\). The a-weighted measure of \(\mathsf {R}\) is given by

$$\begin{aligned} \textsc {w-meas}_{M}^{a}(\mathsf {R}) {:=} \sum ^{\ell _a-1}_{k=0} \left( \mathopen {\vert } \mathsf {R}\cap \mathscr {T}\;\!^{a}_{k} \mathclose {\vert } \cdot \textsc {wei}_{a}(k) \right) \end{aligned}$$

with \(\mathscr {T}\;\!^{a}_{0}, \ldots , \mathscr {T}\;\!^{a}_{\ell _a-1}\) the layers induced on \(\mathsf {T}\) by agent a’s priority ordering \(\preccurlyeq _{a}\), and \(\textsc {wei}_{a}\) the weight function defined above (Definition 9). \(\blacktriangleleft \)

Finally, with these tools in place, here is the definition of the closeness between two agents, from a given agent’s point of view.

Definition 11

(Weighted closeness) Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be an XSNM; take \(a \in \mathsf {A}\). The function \(\textsc {w-clos}^{a}_{M}: \mathsf {A}\times \mathsf {A}\rightarrow \mathbb {N}\), indicating the a-weighted closeness in M between any pair of agents (that is, the weighted distance from agenta’s point of view) is given byFootnote 15

$$\begin{aligned} \textsc {w-clos}^{a}_{M}(b_1, b_2) {:=} \textsc {w-meas}_{M}^{a}(\textsc {simi}_{M}(b_1, b_2)). \end{aligned}$$

\(\blacktriangleleft \)

In words, the distance between \(b_1\) and \(b_2\) according to a is given by the weighted sum of the traits they have in common, with the weight given by the importance of the traits from a’s point of view.Footnote 16 Note how, by understanding a SNM as an XSNM in which all agents consider all traits equally relevant (i.e., a SNM is an XSNM in which \(\preccurlyeq _{a} = \mathsf {T}\times \mathsf {T}\) for all \(a \in \mathsf {A}\)), the just defined function \(\textsc {clos}_{M}\) over XSNM is a generalisation of the function \(\textsc {w-clos}^{a}_{M}\) over SNMs (Definition 4). Indeed, as indicated before, when agent a considers all traits as equally important, there is a unique layer \(\mathscr {T}\;\!^{a}_{0} = \mathsf {T}\); thus, \(\textsc {wei}_{a}(0) = 1\), and hence \(\textsc {w-meas}_{M}^{a}(\textsc {simi}_{M}(b_1, b_2))\) becomes the former \(\mathopen {\vert } \textsc {simi}_{M}(b_1, b_2) \mathclose {\vert }\).

Each weighted closeness is simply a subjectively weighted extension of the notion of closeness (Definition 4); thus, it satisfies the indicated properties.

Proposition 4

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be an XSNM; take any \(a, b, b_1, b_2 \in \mathsf {A}\).

  • Non-negativity (the a-weighted closeness from \(b_1\) to \(b_2\) is non-negative):

    $$\begin{aligned} \textsc {w-clos}^{a}_{M}(b_1, b_2) \ge 0. \end{aligned}$$

    Moreover: its upper bound is the a-weight of all traits in \(\mathsf {T}\),

    $$\begin{aligned} \textsc {w-meas}_{M}^{a}(\mathsf {T}) \ge \textsc {w-clos}^{a}_{M}(b_1, b_2) \ge 0. \end{aligned}$$
  • Symmetry (the a-weighted closeness from \(b_1\) to \(b_2\) is equal to that from \(b_2\) to \(b_1\)):

    $$\begin{aligned} \textsc {w-clos}^{a}_{M}(b_1, b_2) = \textsc {w-clos}^{a}_{M}(b_2, b_1). \end{aligned}$$
  • Self-exhaustiveness (the a-weighted closeness from any agent to herself is the a-weight of all traits in \(\mathsf {T}\)):

    $$\begin{aligned} \textsc {w-clos}^{a}_{M}(b_1, b_1) = \textsc {w-meas}_{M}^{a}(\mathsf {T}). \end{aligned}$$
  • ‘Supersubstractivity’ (the a-weighted distance between two agents is larger or equal than the difference of their a-weighted closeness with respect to a third one):

    $$\begin{aligned} \textsc {w-dist}^{a}_{M}(b_1, b_2) \ge \textsc {w-clos}^{a}_{M}(b, b_1) - \textsc {w-clos}^{a}_{M}(b, b_2). \end{aligned}$$

\(\square \)

Example 2

Let \(\mathsf {T}= \left\{ p, q, r \right\} \) be the set of traits, and recall the agents of Example 1 as well as their differences and similarities:

\(V(a) = \left\{ p, q, r \right\} , \qquad V(b) = \left\{ p, q \right\} , \qquad V(c) = \left\{ r \right\} , \qquad V(d) = \left\{ q, r \right\} \).

\(\textsc {diff}_{}(a, a) = \emptyset \),

\(\textsc {diff}_{}(b, c) = \left\{ p, q, r \right\} \),

\(\textsc {simi}_{}(a, a) = \mathsf {T}\),

\(\textsc {simi}_{}(b, c) = \left\{ \; \right\} \),

\(\textsc {diff}_{}(a, b) = \left\{ r \right\} \),

\(\textsc {diff}_{}(b, d) = \left\{ p, r \right\} \),

\(\textsc {simi}_{}(a, b) = \left\{ p, q \right\} \),

\(\textsc {simi}_{}(b, d) = \left\{ q \right\} \),

\(\textsc {diff}_{}(a, c) = \left\{ p, q \right\} \),

\(\textsc {diff}_{}(c, d) = \left\{ q \right\} \),

\(\textsc {simi}_{}(a, c) = \left\{ r \right\} \),

\(\textsc {simi}_{}(c, d) = \left\{ p, r \right\} \).

\(\textsc {diff}_{}(a, d) = \left\{ p \right\} \),

 

\(\textsc {simi}_{}(a, d) = \left\{ q, r \right\} \),

 

In a SNM model, these sets are enough to determine the agents’ distances and closeness. In a XSNM, more information is needed: the trait priority ordering of the agent whose point of view will be consider. Then, differences in priorities over traits might lead to different distances and closeness.

  • Assume the priority ordering of an agent (any of them; her name is omitted for notational simplicity) induces the ordering \(\left\{ r \right\} \succ _{} \left\{ q \right\} \succ _{} \left\{ p \right\} \) (i.e., r is strictly more important than q, which is strictly more important than p). With a slight abuse of notation, the induced function \(\textsc {wei}_{}\) is such that

    $$\begin{aligned} \textsc {wei}_{}(\left\{ r \right\} ) = 3, \qquad \textsc {wei}_{}(\left\{ q \right\} ) = 2, \qquad \textsc {wei}_{}(\left\{ p \right\} ) = 1. \end{aligned}$$

    Then, the weighted distance and closeness are the following.

    figure b
  • Assume now that the priority ordering of the agent induces the ordering \(\left\{ p, q, r \right\} \) (i.e., the three traits have the same priority). Being this the case in which all traits are equally important, the induced \(\textsc {wei}_{}\) is such that

    $$\begin{aligned} \textsc {wei}_{}(\left\{ p, q, r \right\} ) = 1. \end{aligned}$$

    Then, the weighted distances and closeness reduce to the distances and closeness shown in Example 1.

  • Finally, assume the priority ordering of the agent induces the ordering \(\left\{ p, q \right\} \succ _{} \left\{ r \right\} \) (i.e. p and q have the same priority, and r lies strictly below both). The induced \(\textsc {wei}_{}\) is such that

    $$\begin{aligned} \textsc {wei}_{}(\left\{ p, q \right\} ) = 2, \qquad \textsc {wei}_{}(\left\{ r \right\} ) = 1. \end{aligned}$$

    Then, the weighted distances and closeness are the following.

    figure c

\(\blacktriangleleft \)

3 Closeness-Based Threshold Update

Following the DEL approach, it is now possible to provide a model operation creating the new social network model. There are several options. One of the most natural possibilities is the threshold approach of Smets and Velázquez-Quesada (2017b), establishing a link from agent a to agent b if and only if their distance is smaller than the given threshold \(\theta \in \mathbb {N}\). Another alternative, suggested by the cognitive science literature, is to use a group-size limit, relating a with b if and only if b is within the \(\lambda \in \mathbb {N}\) agents closest to a (Smets and Velázquez-Quesada 2017a). Of course, there might be other possibilities.

Here, the threshold strategy will be used over the agents’ closeness.Footnote 17 In order to study the differences between the use of closeness and distance, this section will work with SNMs and the language \(\mathcal {L}\), leaving the study of weighted-closeness-based threshold dynamics over XSNM for Sect. 3.

Definition 12

(Closeness-based threshold update) Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM; take \(\theta \in \mathbb {N}\). The closeness-based threshold (CT) update yields the SNM\({M}_{{\circledcirc }^{\theta }} = \langle \mathsf {A}, {S}_{{\circledcirc }^{\theta }}, V \rangle \), which differs from M only in its social relation, given by

$$\begin{aligned} {S}_{{\circledcirc }^{\theta }} {:=} \left\{ (a,b) \in \mathsf {A}\times \mathsf {A}\mathrel {\varvec{:}}\textsc {clos}_{M}(a, b) \ge \theta \right\} \end{aligned}$$

\(\blacktriangleleft \)

Definition 2.3 in Smets and Velázquez-Quesada (2017b) states that b will be in a’s social network if and only if the distance between them is smaller or equal than the threshold. Here, focussing rather on similarities, b will be in a’s social network if and only if the closeness between them is larger or equal than the threshold.Footnote 18

Example 3

Consider a set of traits \(\mathsf {T}= \left\{ p, q, r \right\} \) together with a set of agents \(\mathsf {A}= \left\{ a, b, c, d \right\} \) as in Example 1:

$$\begin{aligned} V(a) = \left\{ p, q, r \right\} , \qquad V(b) = \left\{ p, q \right\} , \qquad V(c) = \left\{ r \right\} , \qquad V(d) = \left\{ q, r \right\} . \end{aligned}$$

The diagram below on the left shows the agents and their derived closeness:

figure d

The diagram above on the right shows the result of a CT update with \(\theta =2\), with edges indicating the resulting social relation. \(\blacktriangleleft \)

3.1 Properties of the Resulting Network

It is time to explore the properties of the resulting social network. First, three straightforward observations.

Proposition 5

Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM. Then, the social relation \({S}_{{\circledcirc }^{\theta }}\) is

  • reflexive if and only if \(\theta \le \mathopen {\vert } \mathsf {T} \mathclose {\vert }\),

  • serial if and only if it is reflexive,

  • symmetric.

\(\square \)

Proof

  • The relation \({S}_{{\circledcirc }^{\theta }}\) is reflexive iff \(\textsc {clos}_{M}(a, a) \ge \theta \) holds for all \(a \in \mathsf {A}\). But \(\textsc {clos}_{}(a, a) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) for any a (Proposition 2), so \({S}_{{\circledcirc }^{\theta }}\) is reflexive iff \(\mathopen {\vert } \mathsf {T} \mathclose {\vert } \ge \theta \).

  • The right-to-left direction is obvious. From left to right, note that no agent is closer to her than herself (i.e., \(\textsc {clos}_{M}(a, a) \ge \textsc {clos}_{M}(a, b)\) for any \(a, b \in \mathsf {A}\)). Thus, pick any \(a \in \mathsf {A}\): if there is \(b \in \mathsf {A}\) such that \({S}_{{\circledcirc }^{\theta }}ab\), then \(\textsc {clos}_{M}(a, b) \ge \theta \) so \(\textsc {clos}_{M}(a, a) \ge \theta \) and hence \({S}_{{\circledcirc }^{\theta }}aa\).

  • Follows immediately from the symmetry of \(\textsc {clos}_{M}(a, b)\) (Proposition 2).

\(\square \)

As shown by Example 3, the network resulting from a CT update needs to be neither transitive (\({S}_{{\circledcirc }^{2}}ad\) and \({S}_{{\circledcirc }^{2}}dc\) hold, yet \({S}_{{\circledcirc }^{2}}ac\) fails) nor Euclidean (\({S}_{{\circledcirc }^{2}}ab\) and \({S}_{{\circledcirc }^{2}}ad\) hold, yet \({S}_{{\circledcirc }^{2}}bd\) fails). Note that, when the network has any of such properties (in the presence of symmetry that Proposition 5 guarantees, a relation is transitive if and only if it is Euclidean), the update will then yield an equivalence social relation (modulo an appropriate threshold for getting reflexivity, as Proposition 5 indicates).

There are straightforward sufficient conditions that guarantee a transitive/Euclidean social network. Here are, for example, two simple ones.

Proposition 6

Let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM. The social relation \({S}_{{\circledcirc }^{\theta }}\) is transitive/Euclidean if \(\theta = 0\), and also if \(\theta \ge \mathopen {\vert } \mathsf {T} \mathclose {\vert }\).

Proof

Recall (Proposition 2) that \(\mathopen {\vert } \mathsf {T} \mathclose {\vert } \ge \textsc {clos}_{M}(a, b) \ge 0\) for any \(a,b \in \mathsf {A}\). Thus, while \(\theta = 0\) implies \({S}_{{\circledcirc }^{\theta }}\) is the full Cartesian product, \(\theta > \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) implies \({S}_{{\circledcirc }^{\theta }}\) is empty. For the remaining case, take \(\theta = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\). In such case, \({S}_{{\circledcirc }^{\theta }}ab\) implies \(\textsc {clos}_{M}(a, b) \ge \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) and thus \(\textsc {clos}_{M}(a, b) = \mathopen {\vert } \textsc {simi}_{M}(a, b) \mathclose {\vert } = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\); hence, the agents coincide in everything, that is, \(\textsc {simi}_{M}(a, b) = \mathsf {T}\). Thus, \({S}_{{\circledcirc }^{\theta }}ab\) and \({S}_{{\circledcirc }^{\theta }}bc\) imply \(\textsc {simi}_{M}(a, b) = \mathsf {T}= \textsc {simi}_{M}(b, c)\), and hence \(\textsc {simi}_{M}(a, c) = \mathsf {T}\). Therefore, \(\textsc {clos}_{M}(a, c) \ge \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) and thus \({S}_{{\circledcirc }^{\theta }}ac\). \(\square \)

Note how the cases with either \(\theta = 0\) or else \(\theta > \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) are ‘simple’: in the first, \({S}_{{\circledcirc }^{\theta }}\) has every possible pair, in the second, it has none. The case \(\theta = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) is more interesting: the relation is additionally reflexive and transitive, and then the operation turns \(\mathsf {A}\) into a cluster graph (i.e., a disjoint union of fully connected graphs). Such configurations can be also achieved not only by considering a specific threshold, but also by considering a set of agents with particular ‘diversity’ properties.

Example 4

  • Consider \(\mathsf {T}= \left\{ p,q,r \right\} \) and a SNM with agents whose similarities are ‘uniformly distributed’, that is, a SNM in which there is \(n \in \left\{ 0, \ldots , 3 \right\} \) such that \(a \in \mathsf {A}\) implies \(\mathopen {\vert } V(a) \mathclose {\vert } = n\). In such cases, a CT update returns a cluster graph, regardless of the chosen threshold \(\theta \). Indeed, taking \(n=0\) or \(n=3\) makes all agents identical, so any threshold yields a fully connected graph (all agents are connected with one another). Taking \(n=1\) or \(n=2\) does generate different agents (\(V(a) \in \left\{ \left\{ p \right\} , \left\{ q \right\} , \left\{ r \right\} \right\} \) or \(V(a) \in \left\{ \left\{ p,q \right\} , \left\{ q,r \right\} , \left\{ p,r \right\} \right\} \), respectively, for each \(a \in \mathsf {A}\)); in such cases, \(\theta \in \left\{ 0,1 \right\} \) yields again a fully connected graph, and \(\theta \in \left\{ 2,3 \right\} \) creates isolated clusters (i.e., fully connected sets) of identical agents.

  • Consider \(\mathsf {T}= \left\{ p,q,r,s \right\} \), and again a SNM with agents whose similarities are ‘uniformly distributed’ (\(a \in \mathsf {A}\) implies \(\mathopen {\vert } V(a) \mathclose {\vert } = n\)), but now restricted to \(n \in \left\{ 0, \ldots , 4 \right\} \setminus \left\{ 2 \right\} \). Again, \(n=0\) or \(n=4\) makes all agents identical, so any threshold yields a complete graph. Taking \(n=1\) or \(n=3\) generates again different agents (\(V(a) \in \left\{ \left\{ p \right\} , \left\{ q \right\} , \left\{ r \right\} , \left\{ s \right\} \right\} \) or \(V(a) \in \left\{ \left\{ p,q,r \right\} , \left\{ p,q,s \right\} , \left\{ p,r,s \right\} , \left\{ q,r,s \right\} \right\} \), respectively, for each \(a \in \mathsf {A}\)), but in both situations they are all arranged as before: \(\theta \in \left\{ 0,1 \right\} \) produces a complete graph, and \(\theta \in \left\{ 3,4 \right\} \) creates isolated clusters of identical agents.

\(\blacktriangleleft \)

In fact, for any \(\mathsf {T}\) and any SNM with agents whose similarities are ‘uniformly distributed’ in the mentioned restricted way, a CT update arranges the agents in disjoint fully connected groups.

Proposition 7

Take \(n \in \left\{ 0, 1, \mathopen {\vert } \mathsf {T} \mathclose {\vert }-1, \mathopen {\vert } \mathsf {T} \mathclose {\vert } \right\} \), and let \(M = \langle \mathsf {A}, S, V \rangle \) be a SNM in which \(a \in \mathsf {A}\) implies \(\mathopen {\vert } V(a) \mathclose {\vert } = n\). Then, a CT update returns a cluster graph, regardless of the chosen threshold.

Proof

Take any two agents \(a,b \in \mathsf {A}\). In the cases with \(n=0\) and \(n=\mathopen {\vert } \mathsf {T} \mathclose {\vert }\), the restriction on their traits makes them identical (so \(\textsc {clos}_{M}(a, b) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\)). In the cases with \(n=1\) and \(n=\mathopen {\vert } \mathsf {T} \mathclose {\vert }-1\), the agents are either identical again (so \(\textsc {clos}_{M}(a, b) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\)) or else they differ in exactly 2 traits (if \(V(a) \ne V(b)\) under the given restrictions, to get a different set of the same cardinality, a trait has to be removed and another has to be added, then losing two closeness points; thus, \(\textsc {clos}_{M}(a, b) = \mathopen {\vert } \mathsf {T} \mathclose {\vert } - 2\)). Hence, in both scenarios, the condition on \(\mathsf {A}\) guarantees that the closeness \(\textsc {clos}_{M}(a, b)\) between any two \(a,b \in \mathsf {A}\) is either \(\mathopen {\vert } \mathsf {T} \mathclose {\vert }\) or else \(\mathopen {\vert } \mathsf {T} \mathclose {\vert } - 2\). Now, suppose \(\textsc {clos}_{M}(a, b) \ge \theta \) and \(\textsc {clos}_{M}(b, c) \ge \theta \). If \(\textsc {clos}_{M}(a, b) = \mathopen {\vert } \mathsf {T} \mathclose {\vert } = \textsc {clos}_{M}(b, c)\), then \(\textsc {clos}_{M}(a, c) = \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) (see proof of Proposition 6) so \(\textsc {clos}_{M}(a, c) \ge \theta \). Otherwise, at least one of \(\textsc {clos}_{M}(a, b)\) and \(\textsc {clos}_{M}(b, c)\) is \(\mathopen {\vert } \mathsf {T} \mathclose {\vert } - 2\); but then, the one with such value was still larger or equal than \(\theta \), and thus so is \(\textsc {clos}_{M}(a, c)\) (her lowest possible value is also \(\mathopen {\vert } \mathsf {T} \mathclose {\vert } - 2\)). \(\square \)

Of course, this is not a necessary condition for obtaining cluster graphs: a restriction of Example 3 to either \(\left\{ a, b \right\} \) or else \(\left\{ c, d \right\} \) produces a cluster graph when \(\theta = 2\). A further investigation on the necessary and sufficient conditions for obtaining transitive/Euclidean relations is left for further work.

It is useful to note what happens in the ‘agents with similar dissimilarities’ cases not covered by Proposition 7 (that is, the cases for \(n \notin \left\{ 0, 1, \mathopen {\vert } \mathsf {T} \mathclose {\vert }-1, \mathopen {\vert } \mathsf {T} \mathclose {\vert } \right\} \)).

Example 5

Consider \(\mathsf {T}= \left\{ p,q,r,s \right\} \), and again a SNM with agents whose similarities are ‘uniformly distributed’ (\(a \in \mathsf {A}\) implies \(\mathopen {\vert } V(a) \mathclose {\vert } = n\)), this time for \(n=2\) (so \(V(a) \in \left\{ \left\{ p,q \right\} , \left\{ p,r \right\} , \left\{ p,s \right\} , \left\{ q,r \right\} , \left\{ q,s \right\} , \left\{ r,s \right\} \right\} \)). A CT update with \(\theta \in \left\{ 0,3,4 \right\} \) returns a single fully connected graph. However, taking \(\theta \in \left\{ 1,2 \right\} \) produces a collection of overlapping clusters. Indeed, when there is one agent for each trait-combination (\(\mathsf {A}= \left\{ \left\{ p,q \right\} , \left\{ p,r \right\} , \left\{ p,s \right\} , \left\{ q,r \right\} , \left\{ q,s \right\} , \left\{ r,s \right\} \right\} \)), each agent (say, \(\left\{ p,q \right\} \)) is at closeness 0 with herself, and at closeness 2 with four other agents (\(\left\{ p,r \right\} , \left\{ q,r \right\} , \left\{ p,s \right\} , \left\{ r,s \right\} \)), but at closeness 4 with her ‘mirror-image’ (\(\left\{ r,s \right\} \)). Thus, the operation with a threshold in \(\left\{ 1,2 \right\} \) will make each agent a member of four different clusters of size 3 ((i): \(\left\{ \left\{ p,q \right\} , \left\{ p,r \right\} , \left\{ q,r \right\} \right\} \); (ii): \(\left\{ \left\{ p,q \right\} , \left\{ p,s \right\} , \left\{ q,s \right\} \right\} \); (iii): \(\left\{ \left\{ p,q \right\} , \left\{ p,r \right\} , \left\{ p,s \right\} \right\} \); (iv): \(\left\{ \left\{ p,q \right\} , \left\{ q,r \right\} , \left\{ q,s \right\} \right\} \)), but there will be no cluster of size 4, as any group of such length has to include the ‘mirror-image’ of at least one of its members. The diagram below (reflexive edges omitted, and symmetry assumed) shows the resulting configuration.

figure e

\(\blacktriangleleft \)

The cases described in Examples 3 and 5 reveal the ‘typical’ shape of the networks produced by the operation. Agents that are similar enough (i.e., \(\theta \)-similar) will be arranged in fully connected components (the clusters); then, within each component, some agents will be bridges (edges whose deletion would increase the number of connected components in the graph), establishing social connections between somehow ‘dissimilar’ groups.

3.2 A Formal Language

In order to talk about the transformations the CT update operation brings about (and the properties of the social relation it creates), the basic language \(\mathcal {L}\) is extended with a new modality.

Definition 13

(Language\(\mathcal {L}_{{\circledcirc }^{\theta }}\)) The language \(\mathcal {L}_{{\circledcirc }^{\theta }}\) extends \(\mathcal {L}\) with a modality \(\mathop {[{\circledcirc }^{\theta }]}\) to build formulas of the form \(\mathop {[{\circledcirc }^{\theta }]}\varphi \) (“after aCTupdate,\(\varphi \)is the case”). The semantic interpretation of this modality refers to the CT operation of Definition 12 as follows. Let M be an SNM; then,

$$\begin{aligned} \begin{array}{lll} M \Vdash \mathop {[{\circledcirc }^{\theta }]}\varphi&\quad \text {iff}_{\text {def}}\quad&{M}_{{\circledcirc }^{\theta }} \Vdash \varphi . \end{array} \end{aligned}$$

Note how, given both the lack of precondition for the semantic interpretation, and the functionality of the model operation, the dual modality \(\mathop {\langle {{\circledcirc }^{\theta }}\rangle }\varphi {:=} \lnot \mathop {[{\circledcirc }^{\theta }]}\lnot \varphi \) is such that \(\Vdash \mathop {[{\circledcirc }^{\theta }]}\varphi \leftrightarrow \mathop {\langle {{\circledcirc }^{\theta }}\rangle }\varphi \). \(\blacktriangleleft \)

The axiom system characterising validities of \(\mathcal {L}_{{\circledcirc }^{\theta }}\) in SNM is built via the DEL technique of recursion axioms: valid formulas and validity-preserving rules indicating how to translate a formula with occurrences of the model-changing modality (in this case, \(\mathop {[{\circledcirc }^{\theta }]}\)) into a provably equivalent one without them (in this case, a formula in \(\mathcal {L}\)). Then, while soundness follows from the validity and validity-preserving properties of the new axioms and rules, completeness follows from the completeness of the axiom system for the basic language. The reader is referred to (van Ditmarsch et al. 2008, Chapter 7) and Wang and Cao (2013) for a detailed explanation of this technique.

In order to use this strategy, one requires a basic ‘static’ language that is already expressive enough to characterise the changes the model operation brings about; as it will be shown, \(\mathcal {L}\) is up to the task. The axioms for atoms describing the agents’ traits, negations and conjunctions are the standard for a ’preconditionless’ model operation (in the case of trait atoms, due to the fact that agents’ traits are not affected by the operation). The crucial axiom, characterising the new social network relation, will be built up step by step.

Intuitively, the axiom should have the form \(\mathop {[{\circledcirc }^{\theta }]}{\text {S}}_{ab} \leftrightarrow `\textsc {clos}_{M}(a, b) \ge \theta '\), and the work consists on expressing the \(`\textsc {clos}_{M}(a, b) \ge \theta '\)-part with a formula of the language. Towards this, the finiteness of the set of traits \(\mathsf {T}\) plays a big role, as it allows us to write existential and universal quantifications over sets of traits in terms of disjunctions and conjunctions, respectively.

First, it is clear that the \(\mathcal {L}\)-formula \({\text {simi}}_{a\cdot b}(\mathsf {R})\) defined below (\(a, b \in \mathsf {A}\); \(\mathsf {R}\subseteq \mathsf {T}\)) is true in a SNMM if and only if \(\mathsf {R}\) is exactly the set of traits a and b have in common in such model (i.e., \(M \Vdash {\text {simi}}_{a\cdot b}(\mathsf {R})\) if and only if \(\mathsf {R}= \textsc {simi}_{M}(a, b)\)).

$$\begin{aligned} {\text {simi}}_{a\cdot b}(\mathsf {R}) {:=} \bigwedge _{t \in \mathsf {R}}(t_a \leftrightarrow t_b) \wedge \bigwedge _{t \in \mathsf {T}\setminus \mathsf {R}}(t_a \underline{\vee }t_b) \end{aligned}$$

Then, the formula \({\text {clos}}^{\tau }_{a\cdot b}\) below (\(a, b \in \mathsf {A}\), \(\tau \in \mathbb {N}\)) characterises the fact that the closeness between agents a and b is \(\tau \) (i.e., \(M \Vdash {\text {clos}}^{\tau }_{a\cdot b}\) if and only if \(\textsc {clos}_{M}(a, b) = \tau \)).Footnote 19

$$\begin{aligned} {\text {clos}}^{\tau }_{a\cdot b} {:=} \bigvee _{\left\{ \mathsf {R}\subseteq \mathsf {T}\mathrel {\varvec{:}}\mathopen {\vert } \mathsf {R} \mathclose {\vert } = \tau \right\} } {\text {simi}}_{a\cdot b}(\mathsf {R}) \qquad \end{aligned}$$

Thus, the formula below characterises the fact that the closeness between a and b is not between 0 and \(\theta -1\).

$$\begin{aligned} {\text {clos}}^{\ge \theta }_{a\cdot b} {:=} \bigwedge _{\tau =0}^{\theta -1} \lnot {\text {clos}}^{\tau }_{a\cdot b} \end{aligned}$$

Given the lower bound of \(\textsc {clos}_{a}{}\) (the non-negativity property in Proposition 4), the formula characterises the fact that the closeness between a and b is larger than or equal to the threshold.

Theorem 1

The axioms and rules in Table 1 form a sound and strongly complete axiom system characterizing validities of \(\mathcal {L}_{{\circledcirc }^{\theta }}\) on SNMs (for a finite \(\mathsf {T}\)). \(\square \)

Proof

Soundness follows from the validity of the axioms. Completeness follows from the completeness of the basic system (first half of the table), as the recursion axioms (second half) define a validity-preserving translation from \(\mathcal {L}_{{\circledcirc }^{\theta }}\) to \(\mathcal {L}\).Footnote 20\(\square \)

Table 1 Axiom system for \(\mathcal {L}_{{\circledcirc }^{\theta }}\) over SNM (\(a, b \in \mathsf {A}\))

4 Weighted Closeness-Based Threshold Update

This section explores a threshold update based now on the agents’ weighted closeness.

Definition 14

(Weighted closeness-based threshold update) Let \(M = \langle \mathsf {A}, S\), \(\left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be a XSNM; take \(\theta \in \mathbb {N}\). The weighted closeness-based threshold (WCT) update yields the XSNM\({M}_{{\circledcirc }^{\theta }} = \langle \mathsf {A}, {S}_{{\circledcirc }^{\theta }}, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \), which differs from M only in its social relation, given by

$$\begin{aligned} {S}_{{\circledcirc }^{\theta }} {:=} \left\{ (a,b) \in \mathsf {A}\times \mathsf {A}\mathrel {\varvec{:}}\textsc {w-clos}^{a}_{M}(a, b) \ge \theta \right\} \end{aligned}$$

\(\blacktriangleleft \)

Note the difference between the former CT update (Definition 12) and the just provided WCT update. As before, b will be in a’s social network if and only if the closeness between them is larger or equal than the threshold. But now, their closeness is measured not as the objective number of traits they have in common (\(\textsc {clos}_{}\); Definition 4), but rather by the weighted-closeness as seen from the point of view of agent a (\(\textsc {w-clos}^{}_{}\); Definition 11), which relies on a’s priority ordering on traits.

Example 6

Consider a set of traits \(\mathsf {T}= \left\{ p, q, r \right\} \), a set of agents \(\mathsf {A}= \left\{ a, b, c, d \right\} \), and a XSNM\(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) with trait function V as in Example 2:

$$\begin{aligned} V(a) = \left\{ p, q, r \right\} , \qquad V(b) = \left\{ p, q \right\} , \qquad V(c) =\left\{ r \right\} , \qquad V(d) = \left\{ q, r \right\} . \end{aligned}$$

Then, the agents’ similarities are given by

$$\begin{aligned} \begin{array}{llll} \textsc {simi}_{}(a, a) = \mathsf {T}, &{} \quad \textsc {simi}_{}(a, b) = \left\{ p, q \right\} , &{} \quad \textsc {simi}_{}(a, c) = \left\{ r \right\} , &{} \quad \textsc {simi}_{}(a, d) = \left\{ q, r \right\} . \\ \textsc {simi}_{}(b, b) = \mathsf {T}, &{} \quad \textsc {simi}_{}(b, c) = \left\{ \; \right\} , &{} \quad \textsc {simi}_{}(b, d) = \left\{ q \right\} , &{} \\ \textsc {simi}_{}(c, c) = \mathsf {T}, &{} \quad \textsc {simi}_{}(c, d) = \left\{ p, r \right\} , &{} &{} \\ \textsc {simi}_{}(d, d) = \mathsf {T}, &{} &{} &{} \\ \end{array} \end{aligned}$$

Now, assume the agents’ trait priority ordering are as follow.

$$\begin{aligned} a: \left\{ r \right\} \succcurlyeq _{a} \left\{ q \right\} \succcurlyeq _{a} \left\{ p \right\} , \qquad b: \left\{ p, q, r \right\} , \qquad c: \left\{ p, r \right\} \succcurlyeq _{c} \left\{ q \right\} , \qquad d: \left\{ r \right\} \succcurlyeq _{d} \left\{ p, q \right\} . \end{aligned}$$

Then, here are the agents’ closeness, from the point of view of each one of them.

figure f

The diagrams below show two XSNMs the WCT operation creates, the leftmost with a threshold \(\theta = 3\), and the rightmost with a threshold \(\theta = 4\). In both cases, the edges indicate the resulting social relation.

figure g

\(\blacktriangleleft \)

4.1 Properties of the Resulting Network

Example 6 shows how, different from the ‘weightless’ case (Proposition 5), the network resulting from a WCT update does not need to be reflexive. This occurs because of agent b’s trait priority ordering, which induces a \(\textsc {wei}_{}\) function that assigns 1 to every trait, thus giving b’s weighted closeness function a range of \(\left\{ 0, \ldots , 3 \right\} \) (Proposition 4: \(0 \le \textsc {w-clos}^{a}_{M}(b_1, b_2) \le \textsc {w-meas}_{M}^{a}(\mathsf {T})\) for any \(a, b_1, b_2 \in \mathsf {A}\)), too low for a threshold similarity requirement of \(\theta = 4\). Of course, the new social relation will be reflexive when the threshold does not go beyond the maximum range of all agents.

Proposition 8

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be a XSNM. The social relation \({S}_{{\circledcirc }^{\theta }}\) is reflexive if and only if \(\theta \le \textsc {w-meas}_{M}^{a}(\mathsf {T})\) for all agents \(a \in \mathsf {A}\). \(\square \)

Once explained, the reason why reflexivity fails in the general case is clear. Still, the situation is interesting because it shows a difference between the so far analogous distance and closeness approaches. Indeed, a ‘weightless’ distance-based threshold operation (Smets and Velázquez-Quesada 2017b) produces reflexive social networks, as not only \(\theta \ge 0\) but also \(\textsc {dist}_{}(a, a) = 0\) for any agent \(a \in \mathsf {A}\) (Proposition 1); so does a ‘weightless’ closeness-based threshold operation, provided that \(\theta \le \mathopen {\vert } \mathsf {T} \mathclose {\vert }\) (Proposition 5). In a ‘weighted world’, a distance-based threshold update also produces reflexive social relations, as again \(0 \le \textsc {w-dist}^{a}_{M}(b_1, b_2)\) holds for any \(a, b_1, b_2 \in \mathsf {A}\). Still, in the weighted closeness-based version, the upper bound of \(\textsc {w-clos}^{}_{}\) differs from agent to agent (Proposition 4), so an extra condition is needed (Proposition 8) to obtain reflexivity in the weighted closeness-based case.

Note how Proposition 8 also characterises the cases in which a WCT update generates serial social networks.

Proposition 9

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be a XSNM. The social relation \({S}_{{\circledcirc }^{\theta }}\) is serial if and only if \(\theta \le \textsc {w-meas}_{M}^{a}(\mathsf {T})\) for all agents \(a \in \mathsf {A}\). \(\square \)

Proof

The resulting network is not serial if and only if there is an agent \(a \in \mathsf {A}\) such that \(\textsc {w-clos}^{a}_{M}(a, b) < \theta \) for all agents \(b \in \mathsf {A}\). But this is the case if and only if there is \(a \in \mathsf {A}\) such that \(\textsc {w-clos}^{a}_{M}(a, a) < \theta \) (i.e., if the relation is not reflexive): the left-to-right is the straightforward, and the right-to-left comes from the fact that no agent is more similar to a than a herself. Thus, the resulting network is serial if and only if it is reflexive, that is (Proposition 8), if and only if \(\theta \le \textsc {w-meas}_{M}^{a}(\mathsf {T})\) for all agents \(a \in \mathsf {A}\). \(\square \)

Characterisation results (i.e., necessary and sufficient conditions) for other relational properties, as symmetry, transitivity and Euclideanity are not as straightforward as the reflexivity and seriality cases. Still, some sufficient conditions can be found. For example, it has been show that social relations built within SNM by means of the CT update are symmetric (Proposition 5).Footnote 21 Then, one can derive the following relatively straightforward and yet revealing result for CT updates over XSNM.

Proposition 10

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be a XSNM in which all agents consider all traits equally relevant (i.e., \(t \preccurlyeq _{a} t'\) for all \(t, t' \in \mathsf {T}\) and \(a \in \mathsf {A}\)). Then, \({S}_{{\circledcirc }^{\theta }}\) is symmetric for any threshold \(\theta \in \mathbb {N}\).

Proof

Assume all agents consider all traits equally relevant. Then, \(a \in \mathsf {A}\) implies \(\mathscr {T}\;\!^{a}_{0} = \mathsf {T}\) and \(\ell _a = 1\); hence, \(\textsc {wei}_{a}(0) = 1\). Thus, for all \(\mathsf {R}\subseteq \mathsf {T}\),

$$\begin{aligned} \textsc {w-meas}_{M}^{a}(\mathsf {R}) = \sum ^{1-1}_{k=0} \left( \mathopen {\vert } \mathsf {R}\cap \mathscr {T}\;\!^{a}_{k} \mathclose {\vert } \cdot \textsc {wei}_{a}(k) \right) = \mathopen {\vert } \mathsf {R}\cap \mathscr {T}\;\!^{a}_{0} \mathclose {\vert } \cdot \textsc {wei}_{a}(0) = \mathopen {\vert } \mathsf {R}\cap \mathsf {T} \mathclose {\vert } =\mathopen {\vert } \mathsf {R} \mathclose {\vert } \end{aligned}$$

and therefore

$$\begin{aligned} \textsc {w-clos}^{a}_{M}(b_1, b_2) = \textsc {w-meas}_{M}^{a}(\textsc {simi}_{M}(b_1, b_2)) =\mathopen {\vert } \textsc {simi}_{M}(b_1, b_2) \mathclose {\vert } = \textsc {clos}_{M}(b_1, b_2). \end{aligned}$$

For the proof, suppose \({S}_{{\circledcirc }^{\theta }}ab\). Then, \(\textsc {w-clos}^{a}_{M}(a, b) \ge \theta \), that is, \(\textsc {clos}_{M}(a, b) \ge \theta \). But \(\textsc {clos}_{M}\) is symmetric (Proposition 2), and thus \(\textsc {clos}_{M}(b, a) \ge \theta \); then, \(\textsc {w-clos}^{b}_{M}(b, a) \ge \theta \) and therefore \({S}_{{\circledcirc }^{\theta }}ba\). \(\square \)

But this is not a necessary condition for symmetry; the resulting social relation can also have such properties under weaker requirements. Indeed, ‘flat’ trait priority orderings are not necessary; any priority ordering will do, as long as it is the same for all agents.

Proposition 11

Let \(M = \langle \mathsf {A}, S, \left\{ \preccurlyeq _{a} \right\} _{a \in \mathsf {A}}, V \rangle \) be a XSNM in which all agents have the same trait priority relation (i.e., for any \(a,b \in \mathsf {A}\), \(t, t' \in \mathsf {T}\) and \(t \preccurlyeq _{a} t'\) imply \(t \preccurlyeq _{b} t'\)). Then, \({S}_{{\circledcirc }^{\theta }}\) is symmetric for any threshold \(\theta \in \mathbb {N}\). \(\square \)

Proof

Suppose \({S}_{{\circledcirc }^{\theta }}ab\). Then, \(\textsc {w-clos}^{a}_{M}(a, b) \ge \theta \), i.e., \(\textsc {w-meas}_{M}^{a}(\textsc {simi}_{M}(a, b)) \ge \theta \). All agents have the same trait priority relation, so \(\textsc {w-meas}_{M}^{a}(\mathsf {R}) = \textsc {w-meas}_{M}^{b}(\mathsf {R})\) for all \(\mathsf {R}\subseteq \mathsf {T}\), and therefore \(\textsc {w-meas}_{M}^{b}(\textsc {simi}_{M}(a, b)) \ge \theta \). Moreover: clearly, \(\textsc {simi}_{M}(a, b) = \textsc {simi}_{M}(b, a)\), so \(\textsc {w-meas}_{M}^{b}(\textsc {simi}_{M}(b, a)) \ge \theta \); hence, \(a \in {S}_{{\circledcirc }^{\theta }}[b]\). \(\square \)

Still, once more this is not a necessary condition. For example, two agents a and b assigning the same value to the traits in \(\textsc {simi}_{}(a, b)\) might have opposite views on the importance of the remaining traits, and still their social connection will be bidirectional (or non-existent, if \(\theta \) does not allow it).

For transitive and/or Euclidean, Sect. 3.1 showed how sufficient and necessary conditions require attention to more details, even in the ‘weightless’ case. One can only expect for these details to become more intricate when (potentially different) priorities over traits are brought into the picture. A further study on necessary and sufficient conditions for these properties in this ‘weighted’ scenario is left for further work.

4.2 A Formal Language

In order to talk about the changes the WCT update operation brings about (and the properties of the social relation it creates), the basic language \(\mathcal {L}_{\sqsubseteq }\) is extended with a new modality.

Definition 15

(Language\(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\)) The language \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\) extends \(\mathcal {L}_{\sqsubseteq }\) with a modality \(\mathop {[{\circledcirc }^{{\theta }_{\textsc {W}}}]}\) to build formulas of the form \(\mathop {[{\circledcirc }^{{\theta }_{\textsc {W}}}]}\varphi \) (“after aWCTupdate,\(\varphi \)is the case”). The semantic interpretation of this modality refers to the WCT operation of Definition 14 as follows. Let M be an XSNM; then,

$$\begin{aligned} M \Vdash \mathop {[{\circledcirc }^{{\theta }_{\textsc {W}}}]}\varphi \;\quad \text {iff}_{\text {def}}\quad \; {M}_{{\circledcirc }^{{\theta }_{\textsc {W}}}} \Vdash \varphi . \end{aligned}$$

As before, \(\mathop {\langle {{\circledcirc }^{{\theta }_{\textsc {W}}}}\rangle }\varphi {:=} \lnot \mathop {[{\circledcirc }^{{\theta }_{\textsc {W}}}]}\lnot \varphi \) is such that \(\Vdash \mathop {[{\circledcirc }^{{\theta }_{\textsc {W}}}]}\varphi \leftrightarrow \mathop {\langle {{\circledcirc }^{{\theta }_{\textsc {W}}}}\rangle }\varphi \). \(\blacktriangleleft \)

Again, the axiom system characterising validities of \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\) in XSNM is built via the DEL’s recursion axioms technique. Once again, this strategy requires an expressive enough basic language; thanks, in particular, to atoms of the form \(t_1\sqsubseteq _{a}t_2\), the language \(\mathcal {L}_{\sqsubseteq }\) is up to the task. The axioms for non-social-network atoms (including now not only those describing the agents’ traits, but also those describing their priority ordering over them), negation and conjunction are standard once again (for the new atoms, the priority orderings are not affected by the operation). The crucial axiom, the one characterising the new social network relation, will be once again built up step by step.

The axiom should have the form \(\mathop {[{\circledcirc }^{\theta }]}{\text {S}}_{ab} \;\leftrightarrow \; `\textsc {w-clos}^{a}_{M}(a, b) \ge \theta '\). Once again, the finiteness of \(\mathsf {T}\) is crucial for disguising quantifications over sets of traits. The other crucial aspect are the special atoms of the language (those of the form \(t_a\) and \(t_1\sqsubseteq _{a}t_2\)), which allow to describe the properties the involved sets should have. The formula \({\text {simi}}_{a\cdot b}(\mathsf {R})\) of before (Page 19) will play again an important role, but now it will be also important to describe the layers induced by each agent’s priority relation, as they are crucial in the weight each element of \(\textsc {simi}_{}(a, b)\) will have.

First, the \(\mathcal {L}_{\sqsubseteq }\)-formulas \({\text {InLayer}}^{a}_{k}(t)\) defined below (for \(a \in \mathsf {A}\), \(0 \le k < \ell _a\) and \(t \in \mathsf {T}\)) characterise the membership to each one of the layers induced by agent a’s priority relation on traits (i.e., \(M \Vdash {\text {InLayer}}^{a}_{k}(t)\) if and only if \(t \in \mathscr {T}\;\!^{a}_{k}\)).

$$\begin{aligned} {\text {InLayer}}^{a}_{0}(t)&{:=} \displaystyle \bigwedge _{u \in \mathsf {T}} u\sqsubseteq _{a}t \\ {\text {InLayer}}^{a}_{k+1}(t)&{:=} \displaystyle \bigwedge _{i=0}^{k} \lnot {\text {InLayer}}^{a}_{i}(t) \;\wedge \; \bigwedge _{u \in \mathsf {T}} \Big (\bigwedge _{i=0}^{k} \lnot {\text {InLayer}}^{a}_{i}(u) \,\rightarrow \,u\sqsubseteq _{a}t \Big ) \end{aligned}$$

Indeed, a trait t is in layer \(\mathscr {T}\;\!^{a}_{0}\) (i.e., it is one of the most important traits for agent a) whenever every trait u is at most as important as t (the definition of \({\text {InLayer}}^{a}_{0}(t)\)). Moreover, t is in layer \(\mathscr {T}\;\!^{a}_{k+1}\) whenever it does not belong to an ‘upper’ layer (first conjunct of \({\text {InLayer}}^{a}_{k+1}(t)\)) and, within these traits not belonging to ‘upper’ layers, it is among the most important ones (second conjunct of \({\text {InLayer}}^{a}_{k+1}(t)\)). Thus, each \(\mathcal {L}_{\sqsubseteq }\)-formula \({\text {Layer}}^{a}_{k}(\mathsf {R})\) defined below (\(a \in \mathsf {A}\), \(0 \le k <\ell _a\), \(\mathsf {R}\subseteq \mathsf {T}\)) is true in M if and only if \(\mathsf {R}\) is the ith layer generated by \(\preccurlyeq _{a}\) (i.e., \(M \Vdash {\text {Layer}}^{a}_{k}(\mathsf {R})\) if and only if \(\mathsf {R}= \mathscr {T}\;\!^{a}_{k}\)).

$$\begin{aligned} {\text {Layer}}^{a}_{k}(\mathsf {R}) {:=} \bigwedge _{t \in \mathsf {R}} {\text {InLayer}}^{a}_{k}(t) \;\wedge \; \bigwedge _{t \in \mathsf {T}\setminus \mathsf {R}} \lnot {\text {InLayer}}^{a}_{k}(t) \end{aligned}$$

The previously defined \({\text {simi}}_{a\cdot b}(\mathsf {R})\) (characterising the set of traits a and b have in common) and the just defined \({\text {Layer}}^{a}_{k}(\mathsf {R})\) (characterising the layers generated by a’s priority relation) characterise the sets that are involved in defining the weighted closeness between two given agents (Definition 11). It is only left to take once again advantage of the finiteness of \(\mathsf {T}\) (and thus of the number of its subsets) to provide formulas stating both their existence and that they indeed make the agents’ weighted closeness larger or equal than the threshold. First, for \(a, b \in \mathsf {A}\) and \(\tau \in \mathbb {N}\),

$$\begin{aligned} \hbox {w-clos}_{a\cdot b}^{\tau } {:=} \bigvee _{ \left\{ \mathsf {R}, \mathsf {T}_0, \ldots , \mathsf {T}_{\ell _a-1} \subseteq \mathsf {T}\;\varvec{\mid }\; \sum ^{\ell _a-1}_{k=0} \left( \mathopen {\vert } \mathsf {R}\cap \mathsf {T}_k \mathclose {\vert } \cdot \textsc {wei}_{a}(k) \right) = \tau \right\} } \Big ( \bigwedge _{i=0}^{\ell _a-1} {\text {Layer}}^{a}_{i}(\mathsf {T}_i) \;\wedge \; {\text {simi}}_{a\cdot b}(\mathsf {R}) \Big ) \end{aligned}$$

The formula states that there is at least one way of picking sets \(\mathsf {R}\), \(\mathsf {T}_0, \ldots , \mathsf {T}_{\ell _a-1} \subseteq \mathsf {T}\) for which \(\sum ^{\ell _a-1}_{k=0} \left( \mathopen {\vert } \mathsf {R}\cap \mathsf {T}_k \mathclose {\vert } \cdot \textsc {wei}_{a}(k) \right) = \tau \) holds, such that (i)\(\mathsf {T}_i = \mathscr {T}\;\!^{a}_{i}\) for each \(0 \le i < \ell _a\), and (ii)\(\mathsf {R}= \textsc {simi}_{M}(a, b)\). Of course, if \(\textsc {w-clos}^{a}_{M}(a, b) = \tau \), then there is exactly one way of picking these sets such that (i) and (ii) are satisfied (otherwise, no such sets can be picked); hence, the formula holds exactly when \(\textsc {w-clos}^{a}_{M}(a, b) = \tau \) (i.e., \(M \Vdash {\text {w-clos}}^{\tau }_{a\cdot b}\) if and only if \(\textsc {w-clos}^{a}_{M}(a, b) = \tau \)).

Finally, the formula below characterises the fact that the weighted closeness between a and b is larger or equal than the threshold \(\theta \).

$$\begin{aligned} \hbox {w-clos}_{a \cdot b}^{\ge \theta } {:=} \bigwedge _{\tau =0}^{\theta -1} \lnot \hbox {w-clos}_{a \cdot b}^{\tau } \end{aligned}$$

Theorem 2

The axioms and rules in Table 2 form a sound and strongly complete axiom system characterizing validities of \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\) on XSNMs (for a finite \(\mathsf {T}\)). \(\square \)

Proof

Soundness follows from the validity of the axioms. Completeness follows from the completeness of the basic system (the table’s first half), as the recursion axioms (second half) define a validity-preserving translation from \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\) to \(\mathcal {L}_{\sqsubseteq }\). \(\square \)

Table 2 Axiom system for \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\) over XSNM (\(a,b \in \mathsf {A}\); \(t, u \in \mathsf {T}\))

5 Conclusions and Ongoing/Further Work

As mentioned in the introduction, social networks play a crucial role in agents’ interaction: they define the agents’ social environment, which is known to affect both their behaviour and their opinions about the world. This paper, part of an ongoing research project on the logical structure of social network creation (Smets and Velázquez-Quesada 2018a), relies on a similarity idea for establishing social connections: the more traits two agents have in common, the more likely it is for them to end up in being socially related. Our main focus has been two fold: first, the study of a closeness-based approach (dual to the distance-based proposal of Smets and Velázquez-Quesada 2017b), and second, the introduction of a subjective ranking on traits (a XSNM model, extending the SNM presented elsewhere), allowing each one of the agents to assign a different weight to each trait, depending on how important the trait is for her. In both cases, the paper has studied not only the properties of the resulting concepts (\(\textsc {clos}_{}\) and \(\textsc {w-clos}^{}_{}\)), but also the properties of the social relation a threshold strategy yields (the CT and the WTC updates). Also in both cases, the paper has proposing a formal language for describing the given structures (the already existing \(\mathcal {L}\) for SNM; the introduced \(\mathcal {L}_{\sqsubseteq }\) for XSNM) and the changes the respective operations bring about (\(\mathcal {L}_{{\circledcirc }^{\theta }}\) and \(\mathcal {L}_{\sqsubseteq , {\circledcirc }^{{\theta }_{\textsc {W}}}}\)), providing also sound and complete axiom systems.

As most papers do, this proposal has provided some ideas and results, but it has also left some avenues open for further exploration. Two important ones are (i) a more detailed study of the properties of the networks that result from the proposed updates (in particular, the search for necessary and sufficient conditions to guarantee not only transitivity and ‘Euclideanity’, but also further relational and graph properties), and (ii) a study on alternative definitions of closeness (the mentioned \(\textsc {clos-bis}_{}\) and others), including their properties and the ones of the social relation they create.

A different research path arises from considering different criteria to decide whether two agents will become socially related (obviously, the specific topology of the resulting network depends this). The basic requirement this paper asks for is that of similarity, according to which the more similar two agents are, the more likely it is for them to end up in being socially connected, but of course there are other alternatives. An appealing one is the idea that two agents will be socially connected depending on how well they complement each other. In order to carry out such intuition, one would need a setting in which this notion of ‘complementary’ can be formally defined.Footnote 22

Still, the same similarity approach can be used in yet other ways. First, one could look for alternatives to the threshold strategy, which uses distance/closeness by adding every agent that falls within the range \(\theta \) establishes; one example is the group size strategy, which uses distance/closeness by accepting the \(\lambda \) agents that are closer to the given one (Smets and Velázquez-Quesada 2019). Second, instead of looking at the differences and/or similarities in the agents’ traits, one can look at the differences and/or similarities in their epistemic and/or doxastic state. Moreover, one can also look at weighted versions of these measures, with agents having a priority ordering now over propositions, thus indicating that an agreement on the epistemic/doxastic attitude towards certain propositions is for her more important than an agreement towards others. While we have explored agents with epistemic traits in Smets and Velázquez-Quesada (2017b), in future work we can bring these epistemic ingredients together with the results obtained in this paper.

Nevertheless, some of the most interesting research directions arise from a simple observation: in the presented setting, the agents’ traits never change, and therefore neither do their (weighted) distance nor their (weighted) closeness. Thus, sequences of updates coinciding in the last one will produce exactly the same social relation. This somehow counter-intuitive behaviour (social networks tend to change, even if we use the same strategy to update them) suggests that something might be missing in the defined updates (Definitions 12 and 14). One natural way of ‘fixing’ this issue (thus making these updates’ long term behaviour probably more realistic, and definitely more interesting) is to enrich such definitions with conditions referring to the initial social network: after all, current social connections do play a role in creating new ones. One already explored possibility is to add explicitly a social condition, as asking for the existence of a middleman that will allow the new social connection to be established (Smets and Velázquez-Quesada 2017b). Another is to keep the definition as it is, defining now the agents’ distance and closeness not in terms of their in differences and similarities in basic traits (those in \(\mathsf {T}\)), but rather in terms of their differences and similarities on complex ones (those in a more expressive language: see Smets and Velázquez-Quesada 2019). A further one arises when considering models with more than one social network (after all, someone who chooses football as her favourite sport and Lady Gaga as her favourite musician is bound to have different social environments in each one of these contexts); in such cases, connections in one of them might be crucial to create connections in another.

Yet, probably the most obvious alternative is simply to allow actions that change the agents’ traits. But this bring us full circle: one of the reasons an agent might change her behaviour or opinions about the world is because of the way her social environment affects her. Indeed, the most interesting to-be-explored aspect of this social-network-creation mechanisms in which an agent’s traits/features/beliefs/preferences define her social network, is its interplay with social influence phenomena in which an agent’s social network affects her traits/features/beliefs/preferences. Both processes deserve to be studied in tandem, as it is indeed their intertwining what defines the outcome of interaction in multi-agent systems.