Professional Documents
Culture Documents
Research Paper Social Networks
Research Paper Social Networks
Rune Nedergaard (s202192), Klaus Jupiter (s204123), Andreas Holme (s204160), Ole Martin Sørensen (s165495)
K, F and A are model operators which describe knowledge, The @ operator makes the following formula refer to agent
friendship and every agent respectively. Notice that the knowl- g ´1 pnq, so if ”Alice” “ n, ϕ “ I like cake, then @n ϕ = "Alice
edge operator doesn’t take an index i as in standard epistemic likes cake".
logic, where we would have Ki ϕ mean "Agent i knows ϕ".
This is because EFL is inspired by hybrid logic in the sense
that formulas ϕ are valuated given a specific world w P W The binder Ó makes it possible to refer to one self in a formula
and agent a P A. The motivation for doing this is partially where other agents were previously talked about.„ ȷ Ó nϕ can be
found in the types of propositions the langauge deals with, n
read "If I were n then ϕ". In the definition ϕ is the result of
namely ρ P Prop “ indexical propositions such as "I like m
cake" and n P ANom which is an indexical proposition, substituting all occurrences of n in ϕ with m. It might not be ob-
read "I am n", and has it’s semantics built around a function vious that this is what the logic on the rhs of the definition states,
1 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
but consider that the only part which will be true and about n will
only be true, when for M, w, a then gpnq “ a. Every other for-
mula in the sequence of logical ors will not mention n at all. This AppxF yn ^ @n Kϕq Ñ K@n Kϕq
gives us a notion of me, since we will only be truthfully speak-
ing about me{n when we are actually looking at the agent who For agent a the antecedent is false, since a isn’t friends with c in
is named n. any world, and thus the implication holds for a.
Something interesting to note is the information sharing between For agent b the antecedent is true, since b is friends with c and c
friends as a consequence of knowledge operator K and friend- knows they like cake (for both world w0 , w1 ). The consequent
ship operator F in unison. Namely, we have is also true, since in every world b considers possible c knows ϕ.
Thus b knows what a knows without it being "explicitly" stated
anywhere that this should be the case.
AppxF yn ^ @n Kϕq Ñ K@n Kϕq
F φ :“ ρ | n | ␣φ | pφ ^ φq | xπyφ
Fig. 1: Example of a Model in EFL T π :“ K | F | A | φ? | pπ; πq | pπ Y πq | π ˚
The thick lines represent a knowledge relation and the dotted for ρ P P rop and n P AN om. Where we say that the program
lines represent friendship relations. ϕ is the propostion "I like terms are referred to as: π P T and the formulas: φ P F. The
cake". The model can be described by the Kripke structure table below goes through the different programs and explains
their function [2]:
M “ xtw0 , w1 u, ta, b, cu,
tka “ txw0 , w0 y, xw1 , w1 yu, 1. φ? : Proceed if φ is True, else fail.
kb “ txw0 , w1 y, xw0 , w0 y, xw1 , w1 yu, 2. pπ1 ; π2 q : Execute program π1 followed by π2 .
kc “ txw0 , w1 y, xw0 , w0 y, xw1 , w1 yuu,
3. pπ1 Y π2 q : Execute both π1 and π2 non-deterministically,
tfw0 “ txa, by, xb, cyu which can be interpreted as an inclusive disjunction.
fw1 “ txb, cyuu,
V pσq “ txw0 , cy, xw1 , cy, xw1 , byuy 4. π ˚ : Keep executing program π until an equilibrium has
been reached, which is guaranteed to happen within a fi-
Note that in the Kripke structure only the set V pσq has been nite amount of repetitions.
included, but V p␣σq is simply the complentary set of V pσq and
hasn’t been included for ease of reading. The programs F, K and A describe the same relations as defined
The same goes for the symmetric counter parts to the world/agent earlier in EFL.
pairs for the knowledge and friendship operator.
Also note that the reflexive knowledge relations aren’t explicitly The way we denote programs and formulas in a model M is de-
drawn, and in following examples will continue not to be. fined as below. We introduce an operator JK, which is used to
query for specific sets based on a model M. The specific sets
which are queried for are the ones where the program or formula
We look at the formula in question are satisfied.
2 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
3 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
But not all redefinitions require all of these. The knowledge pro-
gram requires all three, but for example friendship requires sym-
metry and irreflexiveness.
d0 : ∆0 : rK :“ pp␣bq?; Kq Y J?s
Now that the PDL-transformations have been explained, we can
d1 : ∆1 : I “ rK :“ Ks
move on to the other GDDL-operations.
And the "integrating" transformation:
We denote the wanted final model r∆sM (or ∆M ) and the sub-
models they are made of as r∆i sM . Each sub-model is created
using a PDL-transformation [∆i ] linked to some action di , and
they are then combined as shown in figure 3.
2 Note that it is possible for a program to fail, in which it "returns" the empty Applying these PDL-transformations to our models results in the
set. sub-models M 1 “ t∆0 M, ∆1 M u, as shown in figure ??.
4 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
The puzzle goes like this: Three children are playing in the mud.
Their father arranges them in a semicircle so that each child can
see every other child. Each child examines every other child’s
face but can not examine his or her own face. A series of public
announcements follow:
Fig. 4: Caption
For the action d0 we have: rK :“ pp␣bq?; Kq Y T ?s which • Father: "At least one of you has mud on your forehead."
is mostly the same as the PDL-transformation from figure 2, (n
replaced with b) but with the twist that p␣bq? "refers" to all agent • First child: "I do not know whether my forehead is muddy
but b instead of only b as in figure 2. This results in all knowledge or not."
being revealed to agent b, as we remove all knowledge relations
from this agent.
d1 results in ∆1 “ I which is the identity transformation. There- • Second child: "I do not know whether my forehead is
fore, r∆1 sM simply returns the original model M , r∆1 sM “ muddy or not."
M.
These sub-models can then be combined into the final model
• Third child: " I know my forehead is muddy!"
∆M , as displayed in figure 5 using the "integrating" transfor-
mation on M 1 .
Each announcement alters model M until the third child only
has to consider four possible worlds. Then, as he can see that the
other children are clean, he knows his forehead must be muddy
(assuming all agents are truthful and trustworthy).
public announcement is possibly the most basic example of such hypothetical transformation, but the distinction will be made clearer later.
5 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
@n Apθ Ñ
Ý ψq Ñ
Ý rsendθ pψqsφ
In the initial "muddy children puzzle", an example of such a
message could be "you have mud on your forehead". Then, con-
Fig. 6: The initial model M and the resulting model sider the same simple example with θ “ J, the announcement
rsendA pxAydqsM rn : ψ! ▷ Jsφ and the equivalence @n KApθ Ñ Ý ψq ÝÑ rK :“
cutθ pψqsφ.
So the cut-operator cutK pψq lets an action sendθ pψq verify or
Ingrid could now announce to her friends (Jonas and Kevin) that
falsify ψ to all agents satisfying θ. Agents who do not sat-
they have mud on their foreheads. Letting Ingrid be the an-
isfy θ have their ka relations left unchanged. It is also impor-
nouncer n, then the announcement just made can be represented
tant to notice that this type of action is only semi-private. Only
as Ó nrn : d! ▷ JsAKxF yn d, where AKxF yn d is read "ev-
agents satisfying θ will receive the message, but all agents will
eryone knows that the friends of Ingrid have mud on their fore-
know that the action took place. This is tied to the formula
head". Everyone would then update their epistemic uncertainty
AppxF yn ^ @n Kϕq Ñ K@n Kφq discussed in section 2, where
by only keeping knowledge relations ka where Jonas and Kevin
once the epistemic about some formula φ is removed for one of
have mud on their forehead - i.e. where φ holds.
your friends, you will know that your friend knows φ and the
friends of yours will know that you have a friend who knows φ
and so on. Thus your network of friends and their network of 5.3 Private Announcements
friends will know what you were told in the message which you As previously mentioned, communication on the presented form
received, which makes the message only semi-private. Later, is only semi-private, as all agents will know that an announce-
this action will gain complexity to cope with a greater degree of ment has occurred. So, for example, if Ingrid is a sender n and
privacy where only the sender and receiver will be aware of the Jonas is the receiver m, and the message ψ says, "I have mud on
action or communication that transpires. my forehead (d)", Kevin will know that if Ingrid has mud on her
forehead, then Jonas will know this by the validity
5.1 Announcements About the Sender
Ó nrn ◁ d! : msAKp@n Kd Ñ
Ý @m K@n dq
A message sent by agent n to agents θ containing information
about the sender can be defined as rn Ÿ ψ! : θsφ, with the state- Which reads, "everyone knows that if n (Ingrid) knows that she
ment that φ holds defined by is dirty, then m (Jonas) also knows that n is dirty. This is often
considered a breach of privacy. Therefore, to ensure privacy be-
@n Kψ Ñ
Ý rsendθ p@n ψqsφ tween n and m, we can embed the sendθ pψq action in a GDDL-
operator, similar to the one previously presented, as shown in
This means that if n knows ψ (@n Kψ), then φ will hold after figure 7. Formulas of private announcements are denoted with
n announces ψ to agents θ. The sendθ -operator will cut any triple bracket: rrrn Ÿ ψ! : θsssφ, where φ holds after n privately
knowledge relations for agents that satisfy θ where ψ is conflict- announces ψ to agents θ.
ing.
6 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
6.1 Asking questions The model transformation for Bob telling Anna that he isn’t
friends with Carol looks like so: rsenda p@b ␣xF ycqsM “ M 1 .
Similarly to social announcements of friendship such as: This cuts the all accessibility relations between the world-pairs
Ó nrn : xF yn!▷xF yns saying: "You, my friends, are my friends", (u0 , u3 ) and (u1 , u2 ), whereby the latter pair become irrelevant
an agent n can ask whether or not an agent m is her friend: from the perspective of the actual world u3 and we therefore only
Ó nrn : xF yn? ▷ ms "Are you, m, my friend?" draw the former two in the resulting model:
Bob asks Anna if there is any news in her life, which places
Anna in a conundrum, because upon learning that Bob works for
the morally dubious Carol, Anna is uncertain whether she can Fig. 10: GDDL-operator for private announcement
trust Bob although she still considers him a friend1 . Let p denote
that Anna is pregnant and let t denote that Anna considers Bob This results in the following model M 2 , where Carol has ac-
trustworthy. The situation is shown in Figure 8, where u3 is the cessibility relations between different worlds (u0 , u3 ) represent-
actual state2 . ing her ignorance of Anna’s pregnancy, as well as the K’ re-
1 We postpone modelling changing friendship relations until the next section.
lations between the world-model pairs (pu0 , d0 qK 1 pu0 , d1 q and
2 Notice that the model is 3D, which we would usually reserve for a model
that has had a GDDL-operator applied to it. However, in this instance it was not possible to draw the required relations in 2D with straight lines.
7 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
pu3 , d0 qK 1 pu3 , d1 q denoting Carol’s ignorance of the fact that In Figure 12 we again remove the hypothetical world, which is
Anna has told Bob: considered by no one in the actual world.
8 af 8
02287 - Epistemic logic for Social Networks s204160, s204123, s202192, s165495
9 af 8