Next Article in Journal
A Note on Some Generalized Hypergeometric Reduction Formulas
Previous Article in Journal
Effect of Weight Thresholding on the Robustness of Real-World Complex Networks to Central Node Attacks
Previous Article in Special Issue
Borel Chain Conditions of Borel Posets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Logic of Homophily Dynamics in Heterogeneous Networks: Axiomatization, Model Checking and Validity Checking

School of Philosophy, Renmin University of China, Beijing 100872, China
Mathematics 2023, 11(16), 3484; https://doi.org/10.3390/math11163484
Submission received: 30 June 2023 / Revised: 6 August 2023 / Accepted: 8 August 2023 / Published: 11 August 2023
(This article belongs to the Special Issue Mathematical Logic, Algorithms and Applications)

Abstract

:
Social networks have received considerable attention from the modal logic community. In this article, we study and characterize one of the most important principles in the field of social networks. Homophily, which means similarity breeds association, reveals the nature of social organization. In order to be able to express similarity and association together, we generalize the basic network and then define the heterogeneous network. The heterogeneous network is also defined to provide a good foundation for the use of logical approaches. The Logic of Homophily L H G , M that we propose in this article is based on Computation Tree Logic and Formal Concept Analysis. L H G , M describes the homophily dynamics of the heterogeneous networks at a specified similarity coefficient. Furthermore, we not only axiomatize the L H G , M and prove that the axiom system LH G , M n is sound and complete, but we also prove that the model checking and the validity checking for L H G , M are both PSPACE-complete.

1. Introduction

With the rapid development in recent years, social network analysis (SNA) has been considered as an effective tool for solving various problems in sociology, economics, and management. As a model that can intuitively represent knowledge, beliefs, and social problems, social networks also received a lot of attention from modal logicians (e.g., [1,2,3,4,5,6,7]). In this article, we will characterize one of the most influential principles of social networks, homophily, from the perspective of logic.
Homophily describes the basic social organization rule that similarity breeds association [8]. In other words, those who have more of the same attributes will be more likely to tend to associate with each other. For example, people that have the same interests, have the same academic background, and have the same hometown are more likely to become friends.
In short, a general network is a structure composed of an object set and a relation between objects, which is usually depicted by a graph, in which objects and relationships are represented by nodes and edges. For example, in Figure 1, objects 1, 3 and 4 are, respectively, associated with 2. Similarly, the affiliation network is a structure composed of an object set, an attribute set and a relation between object and attribute. For example, in Figure 2 (for all figures in this article, unshaded circles represent objects, shaded circles represent attributes, straight lines represent relationships between objects and attributes, and curved lines represent relationships between objects), the object 1 has the attribute a and b, both the object 3 and 4 have the attribute c. However, neither of the two most common types of networks can be directly used to represent homophily since they can only represent association and similarity, respectively. In order to study homophily on the basis of networks, sociologists often use additional data tables and some statistical methods, which are not suitable for logic. Therefore, we will use the heterogeneous network (HetNet for short, e.g., Figure 3), which is a direct combination of general network and affiliation network and can represent both association and similarity.
In this article, the logic of homophily will be based on the HetNets to study and describe the dynamics of networks under the principle of homophily. In a HetNet, if a pair of objects has a certain number of the same attributes, it is considered that the two are similar in a certain degree, and thus they will be associated with each other. If in the HetNet, all similar objects have already been associated with each other, it is considered that the network is homogenized.
The most related work to this article is logic of allies and enemies (LAE) [5,6,7,9]. LAE is based on computation tree logic (CTL), and mainly characterizes another important structural theory in social networks—structure balance theory. Similarly, the logic of homophily in this paper will be also based on CTL to characterize the dynamics of the HetNet under homophily. In addition, logic of homophily will introduce the methods in formal concept analysis (FCA) to represent and extract the implicit information of the HetNet.
Previous logic study on social network structure is only about the structure balance theory and stays on the general object networks. In this article, we generalize the logic study of the structure of social networks to HetNets and the principle of homophily. We first combine general object networks with affiliation networks to propose HetNets that can be used to characterize the principle of homophily; secondly, we define similarity and homophily in HetNets and construct the homophily-evolution models; thirdly, we establish the logic of homophily, which is based not only on CTL but also on FCA, and is, therefore, more expressive, to describe and analyze the HetNet and its homophily dynamic; fourthly, we axiomatize the logic and prove that its axiom system is sound and complete; finally, we propose the model checking and validity checking problem and prove that they are both PSPACE-complete by improving the algorithms.
The structure of this article is as follows: In Section 2, we first introduce the definition of HetNet and define the similarity and homophily on it, and then establish the homophily-evolution model to describe the dynamics. In Section 3, we first introduce the implication between attributes on HetNet, then define the language and semantics of logic of homophily L H G , M , and give some valid formulas. In Section 4, we first introduce the description formula of the HetNet, and then define and explain the axiom system LH G , M n , and finally prove the soundness and the completeness of LH G , M n . In Section 5, we express what the model checking for L H G , M is and then prove it is PSPACE-complete. In Section 6, we express what the validity checking for L H G , M is and then prove it is PSPACE-complete. In Section 7, we summarize our work in this article and illustrate the directions for future work.

2. HetNets and Homophily

Definition 1.
HetNet is a quadruple N = ( G , M , I , R ) , where G and M are non-empty finite sets, I G × M , R G × G , and R is reflexive and symmetric.
In the above definition, requiring the relation R to be reflexive is to reflect that “the object is always associated with itself”. In order to avoid ambiguity, we specifically require that G M = Ø . Then, in order to simplify the problem, we will only consider the case that object relations always appear in pairs, that is, R is required to be symmetric. G and M denote the object set and attribute set, respectively, I and R denote the relationship between objects and attributes and the relationship between objects, respectively.
As mentioned in Section 1, the HetNet given in the Definition 1 is one of the simplest and most intuitive heterogeneous networks and is a direct composition of a general network and an affiliation network. In other words, any HetNet N = ( G , M , I , R ) can be regarded as composed of the affiliation network ( G , M , I ) and the general network ( G , R ) . For example, the network in Figure 3 is combined by the network in Figure 1 and the network in Figure 2.

2.1. Similarity and Homophily

Consider sets X, Y. : 2 X × 2 X × Y 2 Y and : 2 Y × 2 X × Y 2 X , respectively, denote the following operators ( where , A X , B Y , E X × Y ) :
A E = { y Y a A , a E y } ,
B E = { x X b B , x E b } .
For the sets X, Y, if the relation E is fixed, this pair of operators can be regarded as a pair of concept-forming operators in FCA.
FCA, first proposed by Rudolf Wille in [10], is a formal tool that has a solid theoretical foundation and is widely used in various areas, e.g., knowledge representation, information management, and data mining. Not only is the the basic structure in FCA, called formal context, isomorphic to the affiliation network, but the methods of FCA can also be used to represent and extract implicit information in networks [11,12]. Although our work is heavily inspired by FCA, in this article, we will only introduce FCA where necessary since this work has not yet covered the FCA methods in depth (See [13] for more details about FCA).
Definition 2.
Consider N = ( G , M , I , R ) and O G , the similarity of the object set O is defined as S i m ( O ) = | O I | . Let 0 < n M be a similarity coefficient. If S i m ( O ) n , the objects in set O are considered to be n-similar.
Intuitively, O I represents the common attributes in M of objects in O, and the more they have the same attributes, the more similar they are and the higher the similarity coefficient the set has. For example, in Figure 3, S i m ( { 1 , 2 } ) = | { a , b } | = 2 , S i m ( { 3 , 4 } ) = | { d } | = 1 . Therefore, objects 1 and 2 are 2-similar and also 1-similar, but objects 3 and 4 are only 1-similar. In other words, objects 1 and 2 are more similar than 3 and 4. Since Ø I = M , the empty set always has similarities and has the largest similarity, For any g G , { g } I = { m M g I m } , so if one object has attributes, it is always the most similar to itself.
From the perspective of FCA, · I is one of concept-forming operators of formal context K = ( G , M , I ) that is isomorphic to the component affiliation network ( G , M , I ) of HetNet ( G , M , I , R ) , and any set of objects with similarity is a subset of the extension of one certain maximal non-empty formal concept in K. Therefore, as long as all the maximal non-empty formal concepts are obtained, all object sets with similarity in a HetNet can be also obtained. Existing polynomial-delay algorithms for computing formal concepts can do this efficiently (see [14] for details).
Definition 3.
Consider N = ( G , M , I , R ) , O G and a similarity coefficient 0 < n M . If the object set O is n-similar and O O R , the set O is homogenized at n. If all n-similar object sets in N are homogenized, then the HetNet N is called homogenized at the given similarity coefficient n. Otherwise, it is called not homogenized at n.
In the above definition, · R can be understood as one of the concept-forming operators of formal context ( G , G , R ) that is isomorphic to the component general network ( G , R ) of HetNet ( G , M , I , R ) , and O R represents the objects that are associated with all objects in O. Similarly, the empty set is always homogenized since Ø R = G . And because R is reflexive, any single-point set with similarity is always homogenized. In particular, if a HetNet does not have any n-similar set, then it is vacuously homogenized at n. Take Figure 3 as an example. Since { 3 , 4 } R = { 3 , 4 } and { 1 , 2 } R = Ø , { 3 , 4 } is homogenized at 2 but { 3 , 4 } is not even homogenized at 1.
The principle of homophily describes the process of individual aggregation and organization caused by similarity. In other words, homophily shows that the network has a tendency to be homogenized.

2.2. Homophily-Evolution Models

Definition 4.
Consider HetNet N = ( G , M , I , R ) and a similarity coefficient 0 < n M . HetNet N = ( G , M , I , R ) , where R R , is called then-immediate successor of N (denoted N n N ) if and only if N satisfies the following conditions:
(1) 
If N is homogenized, then N = N ;
(2) 
If N is not homogenized, there is only one n-similar object set { i , j } G , where i , j are different objects, satisfying that the object set is not homogenized on N, but homogenized on N , i.e., S i m ( { i , j } ) n , ( i , j ) R , ( j , i ) R , ( i , j ) R and ( j , i ) R .
The Definition 4 means that each update of the non-homogenized HetNet can and can only make a pair of objects with n-similarity associated. Although it is more intuitive to associate objects with higher similarity first, the updates are “equal” to each pair of objects that will be homogenized since we do not intend to discuss this issue in depth in this article. Take Figure 3 as an example. The HetNet in Figure 3, Figure 4 and Figure 5 are its 1-immediate successor, 2-immediate successor and 3-immediate successor, respectively. The update made in Figure 4 is to associate object 2 with 3 since they have one common attribute b. The update made in Figure 5 is to associate object 1 with 2 since they have two common attributes a and b. In other words, the HetNet in Figure 5 is also a 1-immediate successor. Because there are no 3-similar sets in Figure 3’s HetNet, it is homogenized at 3 and thus its only 3-immediate successor is itself.
Definition 5.
Consider HetNet N = ( G , M , I , R ) and 0 < n M . If there is a sequence N 0 n N 1 n n N m (m is a positive integer) such that N 0 = N , and either m = 0 , or for any 0 i < m , N i is not homogenized, then if and only if N m is homogenized, we call this sequence the n-homophily-evolution line of N (n-timeline for short, denoted l n ( N ) ) and call N i the n-successor of N. The n-homophily-evolution tree t n N = ( 𝒩 , 𝒮 ) of N (n-timetree, for short) is a tuple, where 𝒩 = { N N i s t h e n - s u c c e s s o r o f N } , 𝒮 = { ( U , V ) U , V 𝒩 a n d U n V } .
By the immediate successor relation given in Definition 4, a HetNet will gradually form an n-timetree, which is non-transitive, antisymmetric, and has self-loops only at the terminal nodes. Since the network will eventually reach homogenized, the depth of this timetree is finite. Let l e n ( l n ) and d e p ( t n ) be the length of n-timeline and the depth of n-timetree, respectively. l e n ( l n ) is the number of HetNets in an n-timeline and d e p ( t n ) is the length of the longest n-timeline in it.
Proposition 1.
The depth of n-timetree is limited by G ( G 1 ) 2 + 1 .
  • For a HetNet N = ( G , M , I , R ) , only when any two of the objects are not associated but are all n-similar, the number of updates of N can reach the maximum.

3. Logic of Homophily LH G , M

In this section, we will introduce the implication between attributes (IbA) and generalize it on HetNet, and then establish the Logic of Homophily  L H G , M .

3.1. Implication between Attributes and Index

IbA, or the IbA system is an important method in FCA, which is used to represent and extract information from formal contexts. As the “language” of formal contexts, the IbA system describes and characterizes a formal context by expressing the “implicative relationship” between attributes. In other words, “the attribute set A “implicates” the attribute set B” actually means” any object that has all the attributes in A also has all the attributes in B”. Consider an affiliation network or a formal context ( G , M , I ) and attribute sets A , B M . An IbA of the formal context is denoted by A B . A B is valid on the formal context ( G , M , I ) if and only if A I B I .
Since the HetNet and the homophily principle involve not only the relationship between objects and attributes, but also the association between objects, IbA in FCA cannot be directly used to describe the HetNet and its homophily. However, because the formal context is isomorphic to the affiliation network, and the general network ( G , R ) can also be expressed in the form of the affiliation network ( G , G , R ) , i.e., the HetNet can also be similarly expressed, the IbA method can be naturally generalized to the HetNets.
Consider a HetNet N = ( G , M , I , R ) . Let G ˚ = { g ˚ g G } be its index set, R ˚ = R { ( g , g ˚ ) g G } be its index expansion relation.
Definition 6.
An IbA on HetNet N = ( G , M , I , R ) is a tuple ( A , B ) (denoted as A B ), where A , B G G ˚ M . IbA A B is valid on a HetNet N if and only if A I R ˚ B I R ˚ .
In definition 6, I R ˚ is shorthand for I R ˚ and This type of abbreviation in the following also means the same. In addition, for the convenience of writing and avoiding ambiguity, brackets around sets in IbA are usually omitted and the string will be arranged in the order of numbers, indexes, and letters, and the numbers and letters will be arranged in the order of natural numbers and alphabets, respectively. For example, we write 1 3 ˚ a b d as an IbA instead of { 1 , a , 3 ˚ } { b , d } .
The generalization made by Definition 6 is essentially to use the symbols in the object set and index set to represent the attributes of being associated with the “object represented by this symbol” and attributes of only being associated with the “object represented by this symbol”, respectively. For example, IbA 1 a means “the objects associated with object 1 all have the attribute a”, and “1” in this IbA means the attribute “has a relationship with the object 1”, instead of “the object 1”. 1 ˚ b means “the object only associated with 1 has the attribute b”, and since all objects in the HetNet are associated with themselves, 1 ˚ b actually means “object 1 has attribute b”.

3.2. Syntax and Semantics

The language G , M of logic of homophily L H G , M is built on the given object set G and attribute set M (where, G and M is finite, non-empty and satisfies G M = Ø ). The formula ϕ of G , M is defined as follows (where A , B G M G ˚ ):
ϕ : : = A B Hom ¬ ϕ ϕ ϕ AX ϕ E ( ϕ U ϕ ) A ( ϕ U ϕ ) .
The formula A B represents the IbA A B , Hom represents the HetNet is homogenized, and the propositional connectives and temporal operators are consistent with the conventional definitions (more information about CTL temporal operators, please refer to [15,16]). Other propositional connectives and temporal operators are also defined as usual. For example, ϕ ψ = ¬ ϕ ψ , EX ϕ = ¬ AX ¬ ϕ , AF ϕ = A ( U ϕ ) . In addition, also for the convenience of writing, in the following, the expression of “atomic formula” A B is consistent with the specification of IbA in the Section 3.1.
Consider L H G , M . The formula ϕ G , M is satisfied on a HetNet N = ( G , M , I , R ) and at a similarity coefficient n (denoted as N n ϕ ) defined as follows (where A , B G M G ˚ , ψ G , M , 0 < n M ):
N n A B IbA A B is valid on N.
N n always.
N n Hom N n N .
N n ¬ ϕ N n ϕ .
N n ϕ ψ N n ϕ or N n ψ .
N n AX ϕ N , if N n N , then N n ϕ .
N n E ( ϕ U ψ ) There is a timeline N 0 n N 1 n with N 0 = N ,
i N , N i n ψ , for any j < i , N j n ϕ .
N n A ( ϕ U ψ ) For any timeline N 0 n N 1 with N 0 = N ,
i N , N i n ψ , for any j < i , N j n ϕ .
Take Figure 3 as an example to briefly explain the semantics. Let N denote the network in it. First, N n 2 a b , N n ¬ 4 ˚ b , N n ¬ c b represent “all objects associated with object 2 that have attribute a have attribute b”, “object 4 does not have attribute b”, and “there is an object that has attribute c and does not have attribute b”. Then, N 1 EX ( 1 ˚ 2 ) and N 1 ¬ Hom represent, respectively, “there is a 1-immediate successor of N such that object 1 is associated with object 2” and “the HetNet N is not homogenized at 1”. Next, N 1 A ( ¬ 1 ˚ 3 ¬ 1 ˚ 2 U Hom ) means “On any timeline starting from N with the similarity coefficient 1 until the network homogenized, there is always that ‘object 1 has no association with 3 or object 1 is no associated with 2’”. Finally, N 2 ¬ EX ( 1 ˚ 2 ) and N 3 Hom shows that “there is not a 2-immediate successor of N such that object 1 is associated with object 2” and “the HetNet N is homogenized at 3”.
Given a formula ϕ L H G , M and a similarity coefficient n. ϕ is called satisfied if and only if there is an N = ( G , M , I , R ) s.t. N n ϕ . ϕ is called valid (denoted n ϕ ) if and only if for any N = ( G , M , I , R ) , N n ϕ . Consider a formula set Φ and a HetNet N N n Φ if and only if for any ψ Φ , N n ψ . In addition, ϕ is called a semantic consequence of Φ (denoted Φ n ϕ ) if and only if for any HetNet N, if N n Φ , then N n ϕ .
The Proposition 2 gives some basic valid formulas of L H G , M .
Proposition 2.
For L H G , M , the following formulas are valid (where A G M G ˚ , a M , g ˚ , g ˚ G ˚ , 0 < n M ):
(1) 
n AF Hom ;
(2) 
n g ˚ A AX g ˚ A ;
(3) 
n ¬ g ˚ a AX ¬ g ˚ a ;
The three valid formulas in the Proposition 2 state the following: (1) The HetNet will eventually be homogenized; (2) The update will not change the existing relationship; (3) The update will not generate new relationships between objects and attributes.

4. Axiom System LH G , M n

The axiomatization of the logic of homophily L H G , M relies on the description method first introduced by [9]. In short, the description is a formula used to characterize the HetNet. The description formula in this article is based on the regular atomic formula.
Consider L H G , M . If the atomic formula A B satisfies B G M , then A B is called regular. Otherwise, A B is irregular. For any regular atomic formula ϕ = A B , the complement of ϕ (denoted as ϕ ) is a conjunction defined as follows:
( A B ) = a ( G M ) B ( ¬ A a ) .
For any g G , A g represents the subset of G M only determined and selected by g. The description, denoted as δ , is composed of the following series of regular formulas and their complements:
δ = g G ( g ˚ A g ( g ˚ A g ) ) .
For the conjunction ψ in which each branch is a regular atomic formula, let ψ represent the conjunction of the complement of all branch formulas in ψ . Let δ + be the conjunction of all regular atomic formulas in δ , and δ + be the conjunction of complements of all its regular atomic formulas, and obviously δ δ + δ + .
For the HetNet N = ( G , M , I , R ) , the description of N, δ ( N ) is defined as follows (the order of branches of conjunction is determined and I R is shorthand for I R ):
δ ( N ) = g G ( g ˚ { g } I R ( g ˚ { g } I R ) ) .
Since in a HetNet, objects are always associated with themselves and the associations between objects are always symmetric, not all description formulas describe a HetNet. In this article, we specifically stipulate the order of branches of conjunction in the description formula, i.e., the atomic formula is always on the left side of its complement, arrange the atomic formulas in the order of natural numbers according to the object indexes in them, and arrange the branches of complements of atomic formulas in the order of natural numbers and alphabetical order according to the symbols on the right of ⇒. Therefore, it is not difficult to prove that if δ ( N ) is the description of HetNet N, δ ( N ) is the unique description of N. Take Figure 3 as an example. Let N denote the network in it. Its description formula δ ( N ) = ( 1 ˚ 14 a b 2 ˚ 24 a b 3 ˚ 34 b c 4 ˚ 1234 c ) ( ( ¬ 1 ˚ 2 ¬ 1 ˚ 3 ¬ 1 ˚ c ) ( ¬ 2 ˚ 1 ¬ 2 ˚ 3 ¬ 2 ˚ c ) ( ¬ 3 ˚ 1 ¬ 3 ˚ 2 ¬ 3 ˚ a ) ( ¬ 4 ˚ a ¬ 4 ˚ b ) ) .
Table 1 represents the axiom system LH G , M n of the logic of homophily L H G , M with the similarity coefficient n. In Table 1, ϕ , ψ , χ are arbitrary formulas, A , B , C , D G M G ˚ , a M , E n M and E n n , g , g G , g ˚ , g ˚ G ˚ , O ˚ A and O ˚ A , respectively, represent g O g ˚ A and g O ¬ g ˚ A (O is not empty and O G ), σ ( g , g ) means a M ( g ˚ a ¬ g ˚ a ) , δ represents the description of a HetNet, and homophily axiom is the following formula (where δ 1 , δ 2 , , δ m enumerate the descriptions of all HetNets that are homogenized at n):
( HF ) Hom ( δ 1 δ 2 δ m ) .
The axiom system LH G , M n consists of three parts: CTL axioms and rules, axioms about IbAs and axioms and rules about HetNet and update.
CTL axioms and rules are consistent with those in [16].
In the axioms about IbAs, (Ref), (Frag), (Comp), and (Trans) are the axioms of Armstrong’s system (see [17] for more details). ( Frag ) ¬ , ( Comp ) ¬ are the negative extensions of the (Frag) and (Comp). (Incl) indicates the feature of the inclusion relationship. (Abs) explain how the attribute set A implicates the attribute set B. ( Emp ) means that the set of attributes not owned by any object implicates any set of attributes.
In the axioms and rules about HetNet and updates, ( Loop ) indicates that the object is always associated with itself. ( Loop ) ¬ indicates that the index symbol only indicates the relationship between the object and itself. ( Symm ) indicates that the relationship between objects is always symmetric. ( A - gen ) and ( A - gen ¬ ) are valid formulas introduced in Section 3.2. ( E - gen ) represents the relationship generation in an update. ( E - gen ) ¬ represents the relationship that will not be generated in an update. ( Exp ) represents the immediate successor. ( Hom ) and ( Hom ¬ ) indicate that the immediate successor of a homogenized HetNet is always itself and the immediate successor of a HetNet which is not homogenized cannot be itself. In fact, ( Hom ) and ( Hom ¬ ) can be derived from ( HF ) , ( A - gen ) , ( A - gen ¬ ) , ( E - gen ) and ( Exp ) . However, for the convenience of the following proofs, these two formulas are still retained as axioms. ( HF ) , ( Tm 1 ) and ( Tm 2 ) are consistent with the similar axioms and rules in [9].
Consider a formula set Φ and a formula ϕ . If ϕ can be derived by axioms and rules of LH G , M n , ϕ is a theorem of LH G , M n (denoted n ϕ ). If ϕ can be derived from Φ by axioms and rules of LH G , M n , Φ n ϕ .

4.1. Soundness

We will prove the validity of all other axioms and rules except the CTL axioms and rules and Armstrong’s axioms which have been proven to be valid. Next, a lemma used to assist the following proofs will be first proved.
Lemma 1.
Consider L H G , M . For any description δ, HetNet N and similarity coefficient n, δ is the description of N iff N n δ .
Proof. 
By definition, left to right obviously holds. Only from right to left is shown here. Consider the description δ = g G ( g ˚ A g ( g ˚ A g ) ) , the HetNet N = ( G , M , I , R ) and the similarity coefficient n. If δ does not describe N, then there exists g G such that A g { g } I R , i.e., either A g { g } I R , or { g } I R A g . For the former, according to the definition of ( g ˚ A g ) , there must exist a { g } I R so that ¬ g ˚ a is a branch of δ . Therefore, N n δ . Similarly, for the latter, there must exist a A g such that N n g ˚ a (otherwise, a { g } I R ). Thus, N n δ .  □
Here, we only show the axioms and rules that should be proved, and the proof will be given in the Appendix A.
Theorem 1.
For L H G , M , the following axioms and rules are valid (where ϕ , ψ are arbitrary formulas, A , B , C G M G ˚ , a M g , g G , g ˚ , g ˚ G ˚ , E n M and E n n ( 0 < n M ), O is not empty and O G , δ is a description of HetNet):
(Frag¬)
¬ A B C ¬ A C ;
(Comp¬)
¬ A B ¬ A C ¬ A B C ;
(Incl)
( A B ¬ A C ) ¬ B C ;
(Abs)
( O ˚ A O ˚ B ( G O ) ˚ A ) A B ;
(Loop)
g ˚ g ;
(Loop¬)
¬ g g ˚        ( g g ) ;
(Symm)
g ˚ g g ˚ g ;
(A-gen)
g ˚ A AX g ˚ A ;
(A-gen¬)
¬ g ˚ a AX ¬ g ˚ a ;
(E-gen)
( g ˚ E n g ˚ E n ) EX g ˚ g ;
(E-gen¬)
From δ ¬ g ˚ g σ ( g , g ) to infer δ ¬ EX g ˚ g ;
(Exp)
From δ ¬ g ˚ g EX g ˚ g to infer δ EX ( g ˚ g ( δ + g ˚ g g ˚ g ) ) ;
(HF)
Homophily axiom;
(Hom)
( δ Hom ) ( δ AX δ ) ;
(Hom¬)
( δ ¬ Hom ) ( δ ¬ AX δ ) ;
(Tm1)
From δ Hom to infer δ ( A ( ϕ U ψ ) ψ ) ;
(Tm2)
From δ Hom to infer δ ( E ( ϕ U ψ ) ψ ) .
Theorem 2 (Soundness).
For any formula set Φ and formula ϕ, if Φ n ϕ , then Φ n ϕ .

4.2. Completeness

In this section, we will first prove that the tomorrow formula is the theorem of LH G , M n .
Tomorrow formula, denoted as ( t ( δ ) ) , is the following formula:
( t ( δ ) ) δ ( AX ( δ 1 δ n ) EX δ 1 EX δ n ) .
  • δ 1 , , δ n is the description of the n-immediate successor of the HetNet described by δ . ( t ( δ ) ) can be abbreviated as δ { δ 1 , , δ n } , ∇ is the so-called cover modality.
Lemma 2.
n δ { δ 1 , , δ n } .
Proof. 
Consider a description δ which describes a HetNet and a similarity coefficient n.
If δ describes a HetNet that is homogenized at n, according to ( HF ) , n δ Hom . By ( HOM ) , n δ AX δ , i.e., n δ { δ } .
If δ does not describe a homogenized HetNet, then n δ ¬ ( δ 1 δ 2 δ n ) , i.e., n δ ¬ Hom . According to ( Hom ¬ ) and n δ δ + δ + , n δ ¬ AX ( δ + δ + ) , i.e., n δ EX ( ¬ δ + ¬ ( δ + ) ) . And by ( A - gen ) , n δ AX δ + . Therefore, n δ EX ( ¬ ( δ + ) ) . According to ( A - gen ¬ ) , for all formulas in the form of ¬ g ˚ a in δ + (where a M ), n δ AX ¬ g ˚ a . Similarly, according to ( E - gen ¬ ) , for all formulas in the form of ¬ g ˚ g (where g , g G ) in δ + , if n δ σ ( g , g ) , then n δ AX ¬ g ˚ g . Therefore, there exists g , g G such that ¬ g ˚ g is the branch of δ + and n δ ¬ ( σ ( g , g ) ) , then according to ( E - gen ) , n δ EX g ˚ g , i.e., n δ ¬ g ˚ g EX g ˚ g . Thus, according to ( Exp ) , there exists g , g G such that n δ EX ( g ˚ g ( δ + g ˚ g g ˚ g ) ) , and since ( A - gen ) and ( Symm ) , there exists g , g G such that n δ EX ( ( δ + g ˚ g g ˚ g ) ( δ + g ˚ g g ˚ g ) ) , obviously ( δ + g ˚ g g ˚ g ) ( δ + g ˚ g g ˚ g ) is equivalent to the description of one HetNet. Suppose for δ , there are m pairs of g , g G that satisfy the above conditions. Let δ 1 , , δ m represent the above equivalent HetNet descriptions, respectively. n δ EX δ 1 EX δ n . According to the definition of n-immediate successor, it is easy to know that δ 1 , , δ m are the descriptions of n-immediate successor of the HetNet described by δ . Finally, since G is finite, it is easy to verify that the above g , g G has exhausted all the cases, thus, n δ AX ( δ 1 δ m ) EX δ 1 EX δ m , i.e., n δ { δ 1 , , δ m } .  □
Lemma 3
([9]). Suppose n δ { δ 1 , , δ m } . The following situations hold:
(1) 
If for all i = 1 , , m , n δ i ϕ , then n δ AX ϕ ;
(2) 
If there exists i { 1 , , m } such that n δ i ¬ ϕ , then n δ ¬ AX ϕ .
Proof. 
Suppose n δ { δ 1 , , δ m } .
(1)
Suppose that for all i = 1 , , m , n δ i ϕ . n δ 1 δ m ϕ . By ( Nec ) , n AX ( δ 1 δ m ϕ ) . By ( K x ) , n AX ( δ 1 δ m ) AX ϕ . Since n δ { δ 1 , , δ m } , n δ AX ϕ .
(2)
Suppose that there exists i { 1 , , m } s.t. n δ i ¬ ϕ . In other words, there exists i { 1 , , m } s.t. n ϕ ¬ δ i . By ( Nec ) , n AX ( ϕ ¬ δ i ) . By ( K x ) , n AX ϕ AX ¬ δ i , i.e., n EX δ i ¬ AX ϕ . Since n δ { δ 1 , , δ m } , n δ ¬ AX ϕ .
 □
Lemma 4.
For any description δ and formula ϕ, one and only one of n δ ϕ and n δ ¬ ϕ must hold.
Proof. 
According to the definition of description, the description is obviously consistent, so n δ ϕ and n δ ¬ ϕ cannot be held at the same time.
Applying induction on ϕ to prove that for any description δ and formula ϕ , either n δ ϕ or n δ ¬ ϕ must hold.
ϕ =
AB: (1) For any δ and an atomic formula in the form of g ˚ A (where g G , A G M G ˚ ), either n δ g ˚ A or n δ ¬ g ˚ A must hold.
Let ψ be an atomic formula in the form of g ˚ A . If ψ is the conjunction branch of δ + , or can be derived from one of the conjunction branches by ( Frag ) , then n δ ψ . According to ( Frag ) and ( Comp ) , n ψ a A ( g ˚ a ) . If ψ is not a conjunction of δ + and cannot be obtained by ( Frag ) , then there is at least one conjunction branch in a A ( g ˚ a ) that also satisfy this condition. Let g ˚ a be the formula that satisfies the condition. Suppose that g ˚ a is g ˚ g ˚ . If there is no other formula that satisfies the condition, according to ( Ref ) , n δ ψ . If there are other formulas, it is obviously impossible to be g ˚ g ˚ . If g ˚ a is of the form g ˚ g ˚ (where g G and g g ), then according to ( Frag )  , ( Loop ) and ( Loop ¬ ) , n δ ¬ ψ . If it is not the above two cases, then according to the definition of δ , it is easy to know that ¬ g ˚ a must be the conjunction branch of δ + . Therefore, n δ ¬ g ˚ a , i.e., n δ ¬ ψ . In summary, (1) holds.
(2) Consider  δ and non-empty sets O G and A G M G ˚ .
(2.1)
n δ O ˚ A or n δ ¬ O ˚ A must hold.
(2.2)
n δ O ˚ A or n δ ¬ ( O ˚ A ) must hold.
(2.3)
If n δ O ˚ A , then there exists O G satisfying O O such that n δ O ˚ A and n δ ( G O ) ˚ A .
According to (1), (2.1) and (2.2) obviously hold. Therefore, according to (1), (2.1), (2.2) and the definition of description, it is easy to know that (2.3) holds.
(3) Consider a description δ and A , B G M G ˚ . If there exists g ˚ G ˚ such that n δ g ˚ A and n δ ¬ g ˚ B , then according to ( Incl ) , n δ ¬ A B . If for any g ˚ G ˚ , n δ g ˚ A or n δ ¬ g ˚ B , then according to (1), for any g ˚ G ˚ , either n δ ¬ g ˚ A , or n δ g ˚ B (3.1). If there is a non-empty set O G such that n δ O ˚ A , then according to (2.3), there exists O G satisfying O O to make n δ O ˚ A and n δ ( G O ) ˚ A hold. Thus, according to (3.1), n δ O ˚ B . Therefore, according to ( Abs ) , n δ A B . If there is no such non-empty set O G that n δ O ˚ A , i.e., for any g G , n δ ¬ g ˚ A . According to ( Emp ) , n δ A B .
Therefore, when ϕ is the atomic formula A B , the conclusion holds.
ϕ =
¬ψ: Suppose n δ ¬ ψ . According to the induction hypothesis, n δ ψ , i.e., n δ ¬ ¬ ψ .
ϕ =
ψχ: Suppose n δ ψ χ . n δ ψ and n δ χ . According to the induction hypothesis, n δ ¬ ψ and δ ¬ χ , i.e., n δ ¬ ( ψ χ ) .
ϕ =
AXψ: Suppose n δ AX ψ . According to Lemma 2 and Lemma 3 (1), there exists i = 1 , , m such that n δ i ψ (where for i = 1 , , m , δ 1 , , δ m are the descriptions of the n-immediate successor of δ ). According to the induction hypothesis, n δ i ¬ ψ . Therefore, by Lemma 3 (2), n δ ¬ AX ψ .
ϕ =
Hom: Suppose n δ Hom . According to ( Hom ) , n δ AX δ . According to the induction hypothesis, n δ ¬ AX δ . Then according to ( Hom ¬ ) , n δ ¬ Hom .
ϕ =
E(ψUχ): Suppose n δ E ( ψ U χ ) . According to ( EU ) , n δ χ ( ψ EX E ( ψ U χ ) ) . Assume that n δ χ and n δ ψ , according to the induction hypothesis, n δ ¬ χ and n δ ¬ ψ . Therefore, n δ ¬ ( χ ( ψ EX E ( ψ U χ ) ) ) and according to ( EU ) , n δ ¬ E ( ψ U χ ) . Assume that n δ χ and n δ EX E ( ψ U χ ) . For i = 1 , , m , let δ 1 , , δ m be the descriptions of the n-immediate successor of δ . According to the Lemma 3 (2), for i = 1 , , m , n δ i E ( ψ U χ ) . Thus, it is back to the condition at the beginning of the proof. Repeat finitely many times until the description δ describes the homogenized HetNet, i.e., n δ Hom . Since n δ E ( ψ U χ ) , n δ χ ( ψ EX E ( ψ U χ ) ) . If n δ χ and n δ ψ , the conclusion also holds. Assume that n δ χ and n δ EX E ( ψ U χ ) . According to the Lemma 3 (2) and δ δ , n δ E ( ψ U χ ) and thus n δ ¬ E ( ψ U χ ) by ( Tm 2 ) . Using the Lemma 3 (1) and ( EU ) repeatedly, we can finally obtain n δ ¬ E ( ψ U χ ) .
ϕ =
A(ψUχ): The case of ϕ = A ( ψ U χ ) is similar to ϕ = E ( ψ U χ ) , as long as ( Tm 1 ) is used instead of ( Tm 2 ) , it can be proved.
 □
Lemma 5.
Consider a description δ, a maximal consistent formula set Φ and a formula ϕ. If δ , ϕ Φ , then n δ ϕ .
Proof. 
Suppose δ , ϕ Φ and n δ ϕ . By the Lemma 3, n δ ¬ ϕ . And according to the definition of the maximal consistent set, ¬ ϕ Φ . Therefore, Φ is inconsistent, contradictory, and the assumption does not hold.  □
Consider L H G , M . For any maximal consistent set Φ , the relation in the HetNet N Φ = ( G , M , I , R ) of Φ is defined as follows (where g , g G , m M and g ˚ G ˚ ):
( g , m ) I g ˚ m Φ ,
( g , g ) R g ˚ g Φ .
Lemma 6.
Consider any description δ of the HetNet and a set of maximal consistent Φ, the following propositions are equivalent:
( 1 ) N Φ n δ ,         ( 2 ) δ describes N Φ ,         ( 3 ) δ Φ         .
Proof. 
According to the definition, it is easy to know that ( 1 ) is equivalent to ( 2 ) . Suppose ( 2 ) holds. Let g ˚ A represent any conjunction branch of δ + . According to the definition of N Φ , for any a A , g ˚ a Φ . Therefore, by ( Comp ) , g ˚ A Φ , i.e., δ + Φ . In the same way, δ + Φ can also be proved. Therefore, δ Φ . Suppose ( 3 ) holds. Consider  g ˚ a (where g G , a G M ). According to the Lemma 5, if g ˚ a Φ , then n δ g ˚ a , and if ¬ g ˚ a Φ , then n δ ¬ g ˚ a . Therefore, one and only one of g ˚ a Φ and ¬ g ˚ a Φ must hold. Thus, by definition, N Φ is completely determined by δ , i.e., δ describes N Φ .  □
Lemma 7.
Consider any maximal consistent formula set Φ. N Φ n Φ .
Proof. 
Suppose δ describes N Φ . According to the Lemma 6, N Φ n δ and δ Φ . And according to the Lemma 5, for any ϕ Φ , n δ ϕ . According to the Theorem 2, for any ϕ Φ , n δ ϕ . Therefore, for any ϕ Φ , N Φ n ϕ , i.e., N Φ n Φ .  □
Theorem 3 (Completeness).
For any formula set Φ and formula ϕ, if Φ n ϕ , then Φ n ϕ .
Since the timetrees of the logic of homophily L H G , M are all finite, i.e., they must be able to be homogenized in the end, the axiom system LH G , M n has strong completeness.

5. Model Checking

In this section, we consider the model checking problem of L H G , M . Consider  G , M , N = ( G , M , I , R ) and a similarity coefficient n. For any ϕ G , M , the model checking problem is to check whether N n ϕ .
Lemma 8.
The model checking for L H G , M is PSPACE-hard.
Proof. 
First, since the model checking problem (TQBF) and the validity checking problem (QBFSAT) for quantified boolean formulas (QBF) are both PSPACE-complete [18], we use the QBFSAT problem for reduction to prove the model checking problem for L H G , M is PSPACE-hard.
Let ψ m = Q 1 x 1 Q 2 x 2 Q m x m ϕ ( x 1 , x 2 , , x m ) be the QBF, where Q i = or , ϕ is a propositional formula, and the value range of x 1 , x 2 , , x m is { 0 , 1 } .
Consider a positive integer n. Let N m n = ( G , M , I , R ) satisfy the following conditions:
  • G = { 0 i , 1 i , 2 i 1 i m } ;
  • M = { a i 1 , , a i n , b i 1 , , b i n 1 i m } ;
  • I = { ( 0 i , a i 1 ) , ( 1 i , a i 1 ) , , ( 0 i , a i n ) , ( 1 i , a i n ) , ( 1 i , b i 1 ) , ( 2 i , b i 1 ) , , ( 1 i , b i n ) , ( 2 i , b i n ) 1 i m } ;
  • R = { ( 0 i , 0 i ) , ( 1 i , 1 i ) , ( 2 i , 2 i ) 1 i m } .
In the HetNet N, the object sets that are n-similar but not homogenized must be in the form of { 0 i , 1 i } or { 1 i , 2 i } . In other words, an update of the HetNet N can only add at most one association between 0 i and 1 i or 1 i and 2 i for a given i. Therefore, the selection of the object sets can be described by the value of x i . If { 0 i , 1 i } becomes homogenized in an update, x i takes 1. And if { 1 i , 2 i } becomes homogenized, x i takes 0.
Let α i = ¬ 0 i ˚ 1 i ¬ 1 i ˚ 2 i , α i 1 = 0 i ˚ 1 i , and α i 0 = 1 i ˚ 2 i . α i 1 means x i takes 1, α i 0 means x i takes 0, and α i represents the initial situation, i.e., the situation where the value of x i is undecided. The inductive definition of β m G , M is as follows:
  • β 0 = ϕ ( α 1 1 , α 2 1 , α m 1 ) ;
  • β i + 1 = α i + 1 AX ( ¬ α i + 1 β i ) if Q i = α i + 1 EX ( ¬ α i + 1 β i ) if Q i =
For any β m , we should only consider the m-step n-successors of the root HetNet and since ¬ α i + 1 should be satisfied first in every update, for any 1 j m , it is impossible for α j 1 and α j 0 to be satisfied at the same time in the above m-step n-successors. Therefore, N m n n β m if and only if ψ m is satisfied. For the HetNet N defined above, d e p ( t n ( N m n ) ) = 2 m + 1 . And the length of β m is also linear-related to m. The above reduction is thus a linear-time reduction. The model checking problem for L H G , M is PSPACE-hard.  □
Lemma 9.
The model checking problem for L H G , M is in PSPACE.
Proof. 
First, determining whether an atomic formula is satisfied on a HetNet or not requires only a few basic calculations on sets. In addition, the model checking algorithms for basic propositional connectives are polynomial-time. Therefore, what we should consider carefully here are Hom and temporal operators.
Consider a HetNet N = ( G , M , I , R ) and a similarity coefficient n. The Algorithm 1 can determine whether N n Hom or not. Since Algorithm 1 performs at most G ( G 1 ) 2 + 1 calculations, it is in PSPACE.
Algorithm 1: Model Checking Algorithm for Hom
Mathematics 11 03484 i001
The algorithms for temporal operators are based on the algorithms for CTL given in [19] since the temporal operators in L H G , M come from CTL. Here, we only give the algorithm of E ( ϕ U ψ ) (Algorithm 2) as an example and other cases are shown in Appendix B.
According to Algorithm 2, it is not difficult to find that it is a recursive algorithm. Each run of the algorithm either shortens the input formula or makes input HetNet “jump to” one of its immediate successors. Therefore, since the formula is finite, and the HetNet will finally reach homogenized, the algorithm will eventually halt.
The model checking algorithms for CTL temporal operators are all in PSPACE with respect to the size of the input computation tree and the length of the input formula. However, the size of the computation tree of an input HetNet ( G , M , I , R ) is at most ( G ( G 1 ) 2 + 1 ) ! , i.e., the growth of the size of the computation tree with that of the HetNet can even be greater than exponential. To reduce storage space usage, we use the depth-first algorithm like Algorithm 2, and release the storage space of the non-overlapping part of the old branch before starting to calculate a new branch. In other words, we do not need the storage space that can store the whole time tree, but only the space that can store the longest timeline, i.e., the size of the storage space is linear to the depth of the tree.
Algorithm 2: Model Checking Algorithm for E ( ϕ U ψ )
Mathematics 11 03484 i002
Therefore, the model checking for L H G , M is in PSPACE.  □
Theorem 4.
The model checking for L H G , M is PSPACE-complete.

6. Validity Checking

Consider non-empty finite sets G and M s.t. G M = Ø , and a similarity coefficient n. For any ϕ G , M , the validity checking problem is to check whether n ϕ .
Lemma 10.
The validity checking for L H G , M is PSPACE-hard.
Proof. 
Consider a QBF ψ m = Q 1 x 1 Q 2 x 2 Q m x m ϕ ( x 1 , x 2 , , x m ) , where m is any positive integer, Q i = or , ϕ is a propositional formula, and the value range of x 1 , x 2 , , x m is { 0 , 1 } , and a positive integer n.
Let G = { 0 i , 1 i , 2 i 1 i m } , M = { a i 1 , , a i n , b i 1 , , b i n 1 i m } , and δ m n = i = 1 m ( ( 0 i ˚ 0 i a i 1 a i 2 a i n ( 0 i ˚ 0 i a i 1 a i 2 a i n ) ) ( 1 i ˚ 1 i a i 1 a i 2 a i n b i 1 b i 2 b i n ( 1 i ˚ 1 i a i 1 a i 2 a i n b i 1 b i 2 b i n ) ) ( 2 i ˚ 2 i b i 1 b i 2 b i n ( 2 i ˚ 2 i b i 1 b i 2 b i n ) ) ) . It is obvious that δ m n is the description of the HetNet N m n in the Proof of Lemma 8. Here, we take the value of the similarity coefficient as n. Since M = 2 mn and hence 1 n M , if N n δ m , N n β m if and only if ψ m is satisfied ( β m is the same as that defined in the Proof of Lemma 8). Therefore, n δ m n β m if and only if ψ m is satisfied. The validity checking for L H G , M is PSPACE-hard.  □
Lemma 11.
The validity checking for L H G , M is in PSPACE.
Proof. 
When non-empty finite sets G and M and a similarity coefficient n are given, the number of HetNets composed of G and M is determined and apparently finite. Let 𝒩 be the set of all those HetNets. We can check whether n ϕ by enumeration, i.e., we can use model checking algorithms to check whether N n ϕ for all N 𝒩 . Since the model checking algorithm is in PSPACE and the storage only needs to keep one HetNet during each model checking process, the validity checking for L H G , M is in PSPACE.  □
Theorem 5.
The validity checking for L H G , M is PSPACE-complete.

7. Conclusions

In this article, we explore the homophily dynamics of HetNets at a determined similarity coefficient from the perspective of logic. More precisely, we establish the Logic of Homophily L H G , M , which describes the homophily dynamics, construct a sound and complete axiom system LH G , M n , and propose the PSPACE-complete model checking and validity checking algorithms for L H G , M . IbAs in FCA are actually some first-order formulas constrained by universal quantifiers. Index expansion enables these first-order formulas to represent “exists and only exists”, and to represent the edges in a HetNet. The method of description formulas based on index expanded IbAs is the key to proving the completeness of axiom systems and solving the validity checking problem. The axiom system LH G , M n not only provides the axioms and rules that directly describe the update, but can also be able to prove the tomorrow theorems, which can only be axioms in previous work [9]. Finally, the model checking algorithms provide the basis for implementation.
There are two main directions for future work:
  • The Logic of Homophily L H G , M is based on CTL and FCA. However, in this article, we only discussed the temporal logic aspect of L H G , M , but did not conduct an in-depth study of the aspect of FCA. Therefore, we will explore the properties of L H G , M from the perspective of IbA systems (e.g., Attribute Exploration) in the following work.
  • Cognitive balance theory, as another important dynamic theory in SNA, is not only closely related to the theory of homophily, but we have also conducted some work on this theory (e.g., [9]). Thus, we will consider further exploring the principle of sentiment homophily by introducing cognitive balance theory. In other words, for sentiment homophily, only when two objects like or dislike a certain attribute at the same time, they can be associated with. Since sentiment homophily can better and more accurately describe the formation of object relationships, it is very important and meaningful to generalize the logic of homophily to the logic of sentiment homophily.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

Thanks in advance to the anonymous reviewers for their help with the article.

Conflicts of Interest

The author declare no conflict of interest.

Abbreviations

  • The following abbreviations are used in this manuscript:
SNASocial network analysis
HetNetHeterogeneous network
LAELogic of allies and enemies
CTLComputation tree logic
FCAFormal concept analysis
IbAImplication between attributes
QBFQuantified Boolean Formula
TQBFTrue Quantified Boolean Formula
QBFSATSatisfiability of Quantified Boolean Formulas

Appendix A. Proof of Theorem 1

Proof. 
Consider a HetNet N = ( G , M , I , R ) and a similarity coefficient n.
(Frag¬)
Suppose N n ¬ A B C . There is a g G s.t. g A B I R ˚ and g C I R ˚ , i.e., g A I R ˚ and g C I R ˚ . Therefore, N n ¬ A C .
(Comp¬)
Suppose N n ¬ A B ¬ A C . There is a g G s.t. g A I R ˚ , g B I R ˚ and g C I R ˚ i.e., g A I R ˚ and g B C I R ˚ . Therefore, N n ¬ A B C .
(Incl)
Suppose N n A B ¬ A C . There is a g G s.t. g A I R ˚ , g B I R ˚ and g C I R ˚ Therefore, N n ¬ B C .
(Abs)
Suppose N n O ˚ A O ˚ B ( G O ) ˚ A . By the definition of O ˚ , for any o O , N n o ˚ A o ˚ B and for any o G O , N n ¬ o ˚ A . Therefore, A I R ˚ = O and O B I R ˚ , i.e., A I R ˚ B I R ˚ . Thus, N n A B .
(Loop)
Since R is reflexive, N n g ˚ g .
(Loop¬)
Consider g , g G s.t. g g . According to ( Loop ) , for any o G , o ˚ o , i.e., o o ˚ I R ˚ . Therefore, g g ˚ I R ˚ . Since g ˚ I R ˚ = { g } , g g ˚ I R ˚ , i.e., N n ¬ g g ˚ .
(Symm)
Since R is symmetric, N n g ˚ g g ˚ g .
(A-gen)
Suppose N n ¬ AX g ˚ A . N n EX ¬ g ˚ A . There is an n-immediate successor of N, N = ( G , M , I , R ) , s.t. N n ¬ g ˚ A . Therefore, g A I R ˚ . Since R R , i.e., A I R ˚ A I R ˚ , g A I R ˚ . Thus, N n ¬ g ˚ A .
(A-gen¬)
Suppose N n ¬ g ˚ a . Since for any n-immediate successor of N, I keeps the same. Therefore, N n AX ¬ g ˚ a .
(E-gen)
Suppose N n g ˚ E n g ˚ E n . By the definition of satisfication, { g , g } is n-similar on N. If ( g , g ) R , N n EX g ˚ g by ( A - gen ) . If ( g , g ) R , there is an n-immediate successor N = ( G , M , I , R ) of N satisfying ( g , g ) R , i.e., N n g ˚ g and N n EX g ˚ g .
(E-gen¬)
If δ describes N and N n δ ¬ g ˚ g σ ( g , g ) , then according to the lemma 1, N n ¬ g ˚ g σ ( g , g ) . Therefore, { g , g } is not n-similar on N, and ( g , g ) R , i.e., for any n-immediate successor N = ( G , M , I , R ) of N, ( g , g ) R . Thus, N n ¬ EX g ˚ g , N n δ ¬ EX g ˚ g .
(Exp)
If δ describes N and N n δ ¬ g ˚ g EX g ˚ g , then according to the lemma 1, N n ¬ g ˚ g EX g ˚ g . Thus, { g , g } is n-similar on N, ( g , g ) R , and there is an n-immediate successor of N, N = ( G , M , I , R ) satisfying that ( g , g ) R . For this n-immediate successor N , obviously N n g ˚ g ( δ + g ˚ g g ˚ g ) . Therefore, N n EX ( g ˚ g ( δ + g ˚ g g ˚ g ) ) , i.e., N n δ EX ( g ˚ g ( δ + g ˚ g g ˚ g ) ) .
(HF)
Since the n-immediate successor of a HetNet that is homogenized at n is itself, the homophily axiom is valid.
(Hom)
Suppose N n δ Hom . If δ describes N, N is homogenized at n. By the definition, N n AX δ . Therefore, N n ( δ Hom ) ( δ AX δ ) . Suppose N n δ AX δ . If δ describes N, N n AX δ , i.e., N n Hom . Therefore, N n ( δ Hom ) ( δ AX δ ) .
(Hom¬)
Suppose N n δ ¬ Hom . If δ describes N, there is a HetNet N s.t. N n N and N N . Therefore, N n δ and hence N n ( δ ¬ Hom ) ( δ ¬ AX δ ) . Suppose N n δ ¬ AX δ . If δ describes N, N n ¬ AX δ , i.e., N n EX ¬ δ . There is a HetNet N s.t. N n N and N N . Therefore, N n ¬ Hom and hence N n ( δ ¬ Hom ) ( δ ¬ AX δ ) .
(Tm1)
Suppose N n δ Hom and δ describes N. N is homogenized at n. If N n ψ , the conclusion holds directly. If not, i.e., N n ¬ ψ , by ( Hom ) , N n AX ¬ ψ , i.e., N n ¬ EX ψ . According to ( A - ind ) , N n A ( ϕ U ψ ) ψ . Therefore, N n δ ( A ( ϕ U ψ ) ψ ) .
(Tm2)
By ( Tm 1 ) and ( E - ind ) , the conclusion holds directly.
 □

Appendix B. Algorithms of Model Checking

In this appendix, we show model checking algorithms for AX ϕ and A ( ϕ U ψ ) .    
Algorithm A1: Model Checking Algorithm for AX ϕ
Mathematics 11 03484 i003
Algorithm A2: Model Checking Algorithm for A ( ϕ U ψ )
Mathematics 11 03484 i004

References

  1. Liu, F.; Seligman, J.; Girard, P. Logical dynamics of belief change in the community. Synthese 2014, 191, 2403–2431. [Google Scholar] [CrossRef] [Green Version]
  2. Christoff, Z.; Hansen, J.U. A logic for diffusion in social networks. J. Appl. Log. 2015, 13, 48–77. [Google Scholar] [CrossRef]
  3. van Ditmarsch, H.; van Eijck, J.; Pardo, P.; Ramezanian, R.; Schwarzentruber, F. Epistemic protocols for dynamic gossip. J. Appl. Log. 2017, 20, 1–31. [Google Scholar] [CrossRef] [Green Version]
  4. Baltag, A.; Christoff, Z.; Rendsvig, R.K.; Smets, S. Dynamic epistemic logics of diffusion and prediction in social networks. Stud. Log. 2019, 107, 489–531. [Google Scholar] [CrossRef] [Green Version]
  5. van der Hoek, W.; Kuijer, L.B.; Wáng, Y.N. A logic of allies and enemies. In Proceedings of the 13th Conference on Logic and the Foundations of Game and Decision Theory (LOFT), Milano, Italy, 16–18 July 2018. [Google Scholar]
  6. Van Der Hoek, W.; Kuijer, L.B.; Wáng, Y.N. Who Should Be My Friends? In Proceedings of the International Workshop on Logic, Rationality and Interaction, Chongqing, China, 18–21 October 2019; pp. 370–384. [Google Scholar]
  7. van der Hoek, W.; Kuijer, L.; Wáng, Y. Logics of allies and enemies: A formal approach to the dynamics of social balance theory. In Proceedings of the IJCAI International Joint Conference on Artificial Intelligence, Virtual, 7–15 January 2021; Volume 2021, pp. 210–216. [Google Scholar]
  8. McPherson, M.; Smith-Lovin, L.; Cook, J.M. Birds of a feather: Homophily in social networks. Annu. Rev. Sociol. 2001, 27, 415–444. [Google Scholar] [CrossRef] [Green Version]
  9. Yì N Wáng, X.L. Dynamic Social Network Modeling: Axiomatizing and Implementing the Logic of Allies and Enemies. Stud. Log. 2019, 12, 27–42. [Google Scholar]
  10. Wille, R. Restructuring Lattice Theory: An Approach Based on Hierarchies of Concepts. In Ordered Sets; Springer: Berlin/Heidelberg, Germany, 1982; pp. 445–470. [Google Scholar]
  11. Valverde-Albacete, F.J.; Peláez-Moreno, C. A Formal Concept Analysis Look at the Analysis of Affiliation Networks. In Formal Concept Analysis of Social Networks; Springer: Berlin/Heidelberg, Germany, 2017; pp. 171–195. [Google Scholar]
  12. Cordero, P.; Enciso, M.; Mora, A.; Ojeda-Aciego, M.; Rossi, C. Knowledge discovery in social networks by using a logic-based treatment of implications. Knowl.-Based Syst. 2015, 87, 16–25. [Google Scholar] [CrossRef]
  13. Ganter, B.; Wille, R. Formal Concept Analysis: Mathematical Foundations; Springer: Berlin/Heidelberg, Germany, 1998. [Google Scholar]
  14. Farach-Colton, M.; Huang, Y. A linear delay algorithm for building concept lattices. In Proceedings of the Annual Symposium on Combinatorial Pattern Matching, Pisa, Italy, 3 June 2008; pp. 204–216. [Google Scholar]
  15. Emerson, E.A.; Clarke, E.M. Using branching time temporal logic to synthesize synchronization skeletons. Sci. Comput. Program. 1982, 2, 241–266. [Google Scholar] [CrossRef] [Green Version]
  16. Goldblatt, R. Logics of Time and Computation; Center for the Study of Language and Information: Stanford, CA, USA, 1987. [Google Scholar]
  17. Armstrong, W.W. Dependency Structures of Data Base Relationships. In Proceedings of the IFIP Congress, Geneva, Switzerland, 25–28 August 1998; Volume 74, pp. 580–583. [Google Scholar]
  18. Stockmeyer, L.J.; Meyer, A.R. Word problems requiring exponential time (preliminary report). In Proceedings of the Fifth Annual ACM Symposium on Theory of Computing, Austin, TX, USA, 30 April–2 May 1973; pp. 1–9. [Google Scholar]
  19. Clarke, E.M.; Emerson, E.A. Design and synthesis of synchronization skeletons using branching time temporal logic. In 25 Years of Model Checking: History, Achievements, Perspectives; Springer: Berlin/Heidelberg, Germany, 2008; pp. 196–215. [Google Scholar]
Figure 1. General Network.
Figure 1. General Network.
Mathematics 11 03484 g001
Figure 2. Affiliation Network.
Figure 2. Affiliation Network.
Mathematics 11 03484 g002
Figure 3. Heterogeneous Network.
Figure 3. Heterogeneous Network.
Mathematics 11 03484 g003
Figure 4. 1-immediate Successor.
Figure 4. 1-immediate Successor.
Mathematics 11 03484 g004
Figure 5. 2-immediate Successor.
Figure 5. 2-immediate Successor.
Mathematics 11 03484 g005
Table 1. Axiom system LH G , M n .
Table 1. Axiom system LH G , M n .
CTL axioms and rules:
( PC ) Substitutions of all propositional tautologies
( K x ) AX ( ϕ ψ ) ( AX ϕ AX ψ )
( D x ) EX
( EU ) E ( ϕ U ψ ) ψ ( ϕ EX E ( ϕ U ψ ) )
( AU ) A ( ϕ U ψ ) ψ ( ϕ AX A ( ϕ U ψ ) )
( MP ) From ϕ and ϕ ψ to infer ψ
( Nec ) From ϕ to infer AX ϕ
( A - ind ) From ψ ( ϕ AX χ ) χ to infer A ( ϕ U ψ ) χ
( E - ind ) From ψ ( ϕ EX χ ) χ to infer E ( ϕ U ψ ) χ
Axioms about IbAs:
( Ref )              A A
( Frag ) A B C A B
( Frag ¬ ) ¬ A B C ¬ A C
( Comp ) A B C D ( A C B D )
( Comp ¬ ) ¬ A B ¬ A C ¬ A B C
( Trans ) A B B C A C
( Incl ) ( A B ¬ A C ) ¬ B C
( Abs ) ( O ˚ A O ˚ B ( G O ) ˚ A ) A B
( Emp ) G ˚ A A B
Axioms and rules about HetNet and update:
( Loop ) g ˚ g
( Loop ¬ ) ¬ g g ˚        ( g g )
( Symm ) g ˚ g g ˚ g
( A - gen ) g ˚ A AX g ˚ A
( A - gen ¬ ) ¬ g ˚ a AX ¬ g ˚ a
( E - gen ) ( g ˚ E n g ˚ E n ) EX g ˚ g
( E - gen ¬ ) From δ ¬ g ˚ g σ ( g , g ) to infer δ ¬ EX g ˚ g
( Exp ) From δ ¬ g ˚ g EX g ˚ g
to infer δ EX ( g ˚ g ( δ + g ˚ g g ˚ g ) )             
( HF ) Homophily axiom
( Hom ) ( δ Hom ) ( δ AX δ )
( Hom ¬ ) ( δ ¬ Hom ) ( δ ¬ AX δ )
( Tm 1 ) From δ Hom to infer δ ( A ( ϕ U ψ ) ψ )
( Tm 2 ) From δ Hom to infer δ ( E ( ϕ U ψ ) ψ )
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Luo, X. The Logic of Homophily Dynamics in Heterogeneous Networks: Axiomatization, Model Checking and Validity Checking. Mathematics 2023, 11, 3484. https://doi.org/10.3390/math11163484

AMA Style

Luo X. The Logic of Homophily Dynamics in Heterogeneous Networks: Axiomatization, Model Checking and Validity Checking. Mathematics. 2023; 11(16):3484. https://doi.org/10.3390/math11163484

Chicago/Turabian Style

Luo, Xiling. 2023. "The Logic of Homophily Dynamics in Heterogeneous Networks: Axiomatization, Model Checking and Validity Checking" Mathematics 11, no. 16: 3484. https://doi.org/10.3390/math11163484

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop