Blame view

text/paper_01/pre-paper.tex 19.9 KB
3e0f9b8a   Francisco Coelho   back to work?
1
2
\documentclass[a4paper, 12pt]{article}

64dd7c8f   Francisco Coelho   Solved subset exp...
3
\usepackage[
3f125ca5   Francisco Coelho   Pre-paper rewrite...
4
    bibstyle=numeric,
8751b392   Francisco Coelho   Completing the SB...
5
6
    citestyle=numeric
]{biblatex} %Imports biblatex package
3f125ca5   Francisco Coelho   Pre-paper rewrite...
7
8
\addbibresource{zugzwang.bib} %Import the bibliography file

652cc0d6   Francisco Coelho   updated amartins ...
9
\usepackage[x11colors]{xcolor}
64dd7c8f   Francisco Coelho   Solved subset exp...
10
%
8751b392   Francisco Coelho   Completing the SB...
11
\usepackage{tikz}
75457690   Francisco Coelho   Dealing with sub-...
12
\tikzset{
7ae9c686   Francisco Coelho   2022-11-29 | Reun...
13
    event/.style={},
8751b392   Francisco Coelho   Completing the SB...
14
15
16
    smodel/.style={fill=gray!25},
    tchoice/.style={draw, circle},
    indep/.style={draw, dashed},
3e0f9b8a   Francisco Coelho   back to work?
17
    proptc/.style = {-latex, dashed},
8751b392   Francisco Coelho   Completing the SB...
18
19
20
    propsm/.style = {-latex, thick},
    doubt/.style = {gray}
}
7ae9c686   Francisco Coelho   2022-11-29 | Reun...
21
\usetikzlibrary{calc, positioning}
353a8086   Francisco Coelho   alterações feitas...
22
%
8751b392   Francisco Coelho   Completing the SB...
23
\usepackage{hyperref}
53b3b48c   Francisco Coelho   Started pre-paper...
24
25
\hypersetup{
    colorlinks=true,
8751b392   Francisco Coelho   Completing the SB...
26
27
28
    linkcolor=blue,
    citecolor=blue,
}
3e0f9b8a   Francisco Coelho   back to work?
29
%
53b3b48c   Francisco Coelho   Started pre-paper...
30
\usepackage{commath}
8751b392   Francisco Coelho   Completing the SB...
31
\usepackage{amsthm}
53b3b48c   Francisco Coelho   Started pre-paper...
32
\newtheorem{assumption}{Assumption}
64dd7c8f   Francisco Coelho   Solved subset exp...
33
34
\newtheorem{definition}{Definition}
\usepackage{amssymb}
3f125ca5   Francisco Coelho   Pre-paper rewrite...
35
\usepackage[nice]{nicefrac}
9d633d90   Francisco Coelho   Paper Draft: Stab...
36
37
38
%
% Local commands
%
53b3b48c   Francisco Coelho   Started pre-paper...
39
\newcommand{\note}[1]{\marginpar{\scriptsize #1}}
9d633d90   Francisco Coelho   Paper Draft: Stab...
40
\newcommand{\naf}{\ensuremath{\sim\!}}
3f125ca5   Francisco Coelho   Pre-paper rewrite...
41
\newcommand{\larr}{\ensuremath{\leftarrow}}
9d633d90   Francisco Coelho   Paper Draft: Stab...
42
43
\newcommand{\at}[1]{\ensuremath{\!\del{#1}}}
\newcommand{\co}[1]{\ensuremath{\overline{#1}}}
505cdc43   Francisco Coelho   long due comeback
44
\newcommand{\fml}[1]{\ensuremath{{\cal #1}}}
9d633d90   Francisco Coelho   Paper Draft: Stab...
45
\newcommand{\deft}[1]{\textbf{#1}}
53b3b48c   Francisco Coelho   Started pre-paper...
46
47
48
\newcommand{\pset}[1]{\ensuremath{\mathbb{P}\at{#1}}}
\newcommand{\ent}{\ensuremath{\lhd}}
\newcommand{\cset}[2]{\ensuremath{\set{#1,~#2}}}
53b3b48c   Francisco Coelho   Started pre-paper...
49
50
51
52
53
54
55
56
57
58
\newcommand{\langof}[1]{\ensuremath{\fml{L}\at{#1}}}
\newcommand{\uset}[1]{\ensuremath{\left<{#1}\right|}}
\newcommand{\lset}[1]{\ensuremath{\left|{#1}\right>}}
\newcommand{\pr}[1]{\ensuremath{\mathrm{P}\at{#1}}}
\newcommand{\class}[1]{\ensuremath{{#1}/_{\!\sim}}}
\newcommand{\urep}[1]{\ensuremath{\rep{#1}{}}}
\newcommand{\lrep}[1]{\ensuremath{\rep{}{#1}}}
\newcommand{\rep}[2]{\left\langle #1 \middle| #2 \right\rangle}
\newcommand{\inconsistent}{\otimes}
\newcommand{\given}{\ensuremath{~\middle|~}}
9d633d90   Francisco Coelho   Paper Draft: Stab...
59
60
61
62
63
64
65
\newcommand{\todo}[1]{\textbf{\color{orange}~(~#1~)~}}

\title{Zugzwang\\\textit{Logic and Artificial Intelligence}}
\author{
    \begin{tabular}{cc}
        Francisco Coelho & Bruno Dinis\\
        \texttt{fc@uevora.pt} & \texttt{bruno.dinis@uevora.pt}
64dd7c8f   Francisco Coelho   Solved subset exp...
66
    \end{tabular}    
3e0f9b8a   Francisco Coelho   back to work?
67
}
9d633d90   Francisco Coelho   Paper Draft: Stab...
68

3e0f9b8a   Francisco Coelho   back to work?
69
70
\begin{document}

9d633d90   Francisco Coelho   Paper Draft: Stab...
71
\maketitle
9b8ebd89   Francisco Coelho   progress pre-pape...
72
73

\nocite{*}
8751b392   Francisco Coelho   Completing the SB...
74

9d633d90   Francisco Coelho   Paper Draft: Stab...
75
\begin{abstract}
53b3b48c   Francisco Coelho   Started pre-paper...
76
    \todo{rewrite}
505cdc43   Francisco Coelho   long due comeback
77
78
    A major limitation of logical representations is the implicit assumption that the Background Knowledge (BK) is perfect. This assumption is problematic if data is noisy, which is often the case. Here we aim to explore how ASP specifications with probabilistic facts can lead to characterizations of probability functions on the specification's domain. 
\end{abstract}
3e0f9b8a   Francisco Coelho   back to work?
79
80
81
82

\section{Introduction and Motivation}

\todo{rewrite}
8751b392   Francisco Coelho   Completing the SB...
83
Answer Set Programming (ASP) is a logic programming paradigm based on the Stable Model semantics of Normal Logic Programs (NP) that can be implemented using the latest advances in SAT solving technology. ASP is a truly declarative language that supports language constructs such as disjunction in the head of a clause, choice rules, and hard and weak constraints.
3e0f9b8a   Francisco Coelho   back to work?
84
85
86
87

The Distribution Semantics (DS) is a key approach to extend logical representations with probabilistic reasoning. Probabilistic Facts (PF) are the most basic stochastic DS primitive and they take the form of logical facts, $a$, labelled with a probability, such as $p::a$; Each probabilistic fact represents a boolean random variable that is true with probability $p$ and false with probability $1 - p$. A (consistent) combination of the PFs defines a \textit{total choice} $c = \set{p::a, \ldots}$ such that

\begin{equation}
9d633d90   Francisco Coelho   Paper Draft: Stab...
88
    \pr{C = x} = \prod_{a\in c} p \prod_{a \not\in c} (1- p).
3e0f9b8a   Francisco Coelho   back to work?
89
90
91
92
    \label{eq:prob.total.choice}
\end{equation}

Our goal is to extend this probability, from total choices, to cover the specification domain. We can foresee two key applications of this extended probability:
505cdc43   Francisco Coelho   long due comeback
93

9d633d90   Francisco Coelho   Paper Draft: Stab...
94
95
\begin{enumerate}
    \item Support any probabilistic reasoning/task on the specification domain.
3e0f9b8a   Francisco Coelho   back to work?
96
97
98
99
100
101
102
103
104
105
106
107
108
109
    \item Also, given a dataset and a divergence measure, now the specification can be scored (by the divergence w.r.t.\ the \emph{empiric} distribution of the dataset), and sorted amongst other specifications. This is a key ingredient in algorithms searching, for example, an optimal specification of the dataset. 
\end{enumerate}

This goal faces a critical problem concerning situations where multiple standard models result from a given total choice, illustrated by the following example. The specification
\begin{equation}
    \begin{aligned}
        0.3::a&,\cr
        b \vee c& \leftarrow a.
    \end{aligned}
    \label{eq:example.1}
\end{equation}
has three stable models, $\co{a}, ab$ and $ac$. While it is straightforward to set $P(\co{a})=0.7$, there is \textit{no further information} to assign values to $P(ab)$ and $P(ac)$. At best, we can use a parameter $x$ such that
$$
\begin{aligned}
8751b392   Francisco Coelho   Completing the SB...
110
P(ab) &= 0.3 x,\cr
9d633d90   Francisco Coelho   Paper Draft: Stab...
111
112
P(ac) &= 0.3 (1 - x).
\end{aligned}
3e0f9b8a   Francisco Coelho   back to work?
113
$$
505cdc43   Francisco Coelho   long due comeback
114

9d633d90   Francisco Coelho   Paper Draft: Stab...
115
116
117
118
119
This uncertainty in inherent to the specification, but can be mitigated with the help of a dataset: the parameter $x$ can be estimated from the empirical distribution.

In summary, if an ASP specification is intended to describe some observable system then:

\begin{enumerate}
505cdc43   Francisco Coelho   long due comeback
120
    \item The observations can be used to estimate the value of the parameters (such as $x$ above and others entailed from further clauses).
3e0f9b8a   Francisco Coelho   back to work?
121
122
123
124
125
126
127
128
129
130
    \item With a probability set for the stable models, we want to extend it to all the events of the specification. 
    \item This extended probability can then be related to the \textit{empirical distribution}, using a probability divergence, such as Kullback-Leibler; and the divergence value used as a \textit{performance} measure of the specification with respect to the observations.
    \item If that specification is only but one of many possible candidates then that performance measure can be used, \textit{e.g.} as fitness, by algorithms searching (optimal) specifications of a dataset of observations.
\end{enumerate}

Currently, we are on the step two above: Extending a probability function (with parameters such as $x$), defined on the stable sets of a specification, to all the events of the specification. This extension must, of course, respect the axioms of probability so that probabilistic reasoning is consistent with the ASP specification. 

\section{Extending Probabilities}

\begin{figure}[t]
3f125ca5   Francisco Coelho   Pre-paper rewrite...
131
    \begin{center}
8751b392   Francisco Coelho   Completing the SB...
132
        \begin{tikzpicture}
3e0f9b8a   Francisco Coelho   back to work?
133
134
135
            \node[event] (E) {$\bot$};
            \node[tchoice, above left = of E] (a) {$a$};
            \node[smodel, above left = of a] (ab) {$ab$};
8751b392   Francisco Coelho   Completing the SB...
136
            \node[smodel, above right = of a] (ac) {$ac$};
353a8086   Francisco Coelho   alterações feitas...
137
            \node[event, below = of ab] (b) {$b$};
8751b392   Francisco Coelho   Completing the SB...
138
            \node[event, below = of ac] (c) {$c$};
353a8086   Francisco Coelho   alterações feitas...
139
            \node[event, above right = of ab] (abc) {$abc$};
8751b392   Francisco Coelho   Completing the SB...
140
            \node[indep, right = of ac] (bc) {$bc$};
3e0f9b8a   Francisco Coelho   back to work?
141
142
            \node[tchoice, smodel, below right = of bc] (A) {$\co{a}$};
            \node[event, above = of A] (Ac) {$\co{a}c$};
8751b392   Francisco Coelho   Completing the SB...
143
            \node[event, above right = of Ac] (Abc) {$\co{a}bc$};
3e0f9b8a   Francisco Coelho   back to work?
144
            % ----
3f125ca5   Francisco Coelho   Pre-paper rewrite...
145
            \draw[proptc] (a) to[bend left] (ab);
3e0f9b8a   Francisco Coelho   back to work?
146
147
148
            \draw[proptc] (a) to[bend right] (ac);

            \draw[propsm] (ab) to[bend left] (abc);
53b3b48c   Francisco Coelho   Started pre-paper...
149
            \draw[propsm] (ac) to[bend right] (abc);
3e0f9b8a   Francisco Coelho   back to work?
150
151
152

            \draw[propsm] (A) to (Ac);
            \draw[propsm] (A) to (Abc);
53b3b48c   Francisco Coelho   Started pre-paper...
153

3e0f9b8a   Francisco Coelho   back to work?
154
155
156
            \draw[doubt] (ab) to[bend right] (E);
            \draw[doubt] (ac) to[bend right] (E);
            \draw[doubt] (A) to[bend left] (E);
53b3b48c   Francisco Coelho   Started pre-paper...
157

3e0f9b8a   Francisco Coelho   back to work?
158
159
160
161
162
            \draw[doubt] (ab) to[bend right] (b);
            \draw[doubt] (ac) to[bend left] (c);
            \draw[doubt] (ab) to[bend left] (a);
            \draw[doubt] (ac) to[bend right] (a);
            \draw[doubt] (c) to[bend right] (bc);
53b3b48c   Francisco Coelho   Started pre-paper...
163
            \draw[doubt] (abc) to[bend left] (bc);
3e0f9b8a   Francisco Coelho   back to work?
164
165
166
            \draw[doubt] (Abc) to (bc);
            \draw[doubt] (c) to[bend right] (Ac);
        \end{tikzpicture}
3f125ca5   Francisco Coelho   Pre-paper rewrite...
167
    \end{center}
3e0f9b8a   Francisco Coelho   back to work?
168
169
170
171
    \caption{Extending values, \textit{e.g.} probabilities, from total choice nodes to stable models and then to general events in a node-wise process quickly leads to coherence problems concerning probability, with no clear systematic approach.}
\end{figure}

Given an ASP specification, we consider the \textit{atoms} $a \in \fml{A}$ and \textit{literals}, $z \in \fml{L}$, \textit{events} $e \in \fml{E} \iff e \subseteq \fml{L}$ and \textit{worlds} $w \in \fml{W}$ (consistent events), \textit{total choices} $c \in \fml{C} \iff c = a \vee \neg a$ and \textit{stable models} $s \in \fml{S}$.
53b3b48c   Francisco Coelho   Started pre-paper...
172

3e0f9b8a   Francisco Coelho   back to work?
173
% In a statistical setting, the outcomes are the literals $x$, $\neg x$ for each atom $x$, the events express a set of possible outcomes (including $\emptyset$, $\set{a, b}$, $\set{a, \neg a, b}$, \textit{etc.}), and worlds are events with no contradictions.
8751b392   Francisco Coelho   Completing the SB...
174

3e0f9b8a   Francisco Coelho   back to work?
175
176
177
Out path starts with a perspective of stable models as playing a role similar to \textit{prime} factors. The stable models of specification are the irreducible events entailed from that specification and any event must be interpreted under its relation with the stable models. This stance leads to definition \ref{def:rel.events}:

\begin{definition}\label{def:rel.events}
9d633d90   Francisco Coelho   Paper Draft: Stab...
178
    Let $e, u, v \in \fml{E}$, and $\fml{S}, \fml{W}$ the set of stable models, resp. consistent events, of some specification. Define
3e0f9b8a   Francisco Coelho   back to work?
179
180
181
182
183
184
185

    \begin{equation}
        \uset{e} = \set{s \in \fml{S} \given e \subseteq s},
    \end{equation}
    \begin{equation}
        \lset{e} = \set{s \in \fml{S} \given s \subseteq e}
    \end{equation}
53b3b48c   Francisco Coelho   Started pre-paper...
186
187
and
    \begin{equation}
3e0f9b8a   Francisco Coelho   back to work?
188
        u \sim v \iff u,v \not\in\fml{W} \vee (\uset{u} = \uset{v} \wedge \lset{u} = \lset{v}).\label{eq:rel.events}
64dd7c8f   Francisco Coelho   Solved subset exp...
189
    \end{equation}
53b3b48c   Francisco Coelho   Started pre-paper...
190
191
\end{definition}

3e0f9b8a   Francisco Coelho   back to work?
192
193
194
This equivalence relation defines a partition of the events space, where each class holds a unique relation with the stable models. In particular, we can denote each class by
\begin{equation}
    \class{e} =
53b3b48c   Francisco Coelho   Started pre-paper...
195
196
    \begin{cases}
        \inconsistent   &\text{if~} e \in \fml{E} \setminus \fml{W}, \\
3e0f9b8a   Francisco Coelho   back to work?
197
198
        \rep{e}{e}      &\text{otherwise}.
    \end{cases}
53b3b48c   Francisco Coelho   Started pre-paper...
199
200
\end{equation}

3e0f9b8a   Francisco Coelho   back to work?
201
202
203
Consider the example from \ref{eq:example.1}. The stable models are $\fml{S} = \co{a}, ab, ac$ so the quotient set of this relation is
\begin{equation}
\begin{aligned}
9d633d90   Francisco Coelho   Paper Draft: Stab...
204
    &\inconsistent, \rep{}{}, \\
3e0f9b8a   Francisco Coelho   back to work?
205
    &\rep{\co{a}}{\co{a}} = \set{\co{a}}, \rep{ab}{ab} = \set{ab}, \rep{ac}{ac} = \set{ac}\\
652cc0d6   Francisco Coelho   updated amartins ...
206
    &\urep{\co{a}},  \urep{ab}, \urep{ac}, \lrep{\co{a}},  \lrep{ab}, \lrep{ac}, \\
3e0f9b8a   Francisco Coelho   back to work?
207
208
209
210
211
212
213
214
215
    &\urep{\co{a}, ab}, \urep{\co{a}, ac},  \urep{ab, ac}, 
    \lrep{\co{a}, ab}, \lrep{\co{a}, ac},  \lrep{ab, ac},\\
    &\urep{\co{a}, ab, ac}, \lrep{\co{a}, ab, ac}.
\end{aligned}
\end{equation}

For example, $\class{a} = \urep{ab, ac}$, $\class{abc} = \lrep{ab, ac}$ and $\class{bc} = \rep{}{}$.


652cc0d6   Francisco Coelho   updated amartins ...
216
\begin{itemize}
9d633d90   Francisco Coelho   Paper Draft: Stab...
217
218
    \item Since all events within a equivalence class have the same relation with the stable models, probability assignment should be constant for the elements of that class.
    \item So, instead of dealing with $2^6$ events, we need only to handle $19$ classes, well defined in terms of combinations of the stable models. 
3e0f9b8a   Francisco Coelho   back to work?
219
220
    \item The extended probability \textit{events} are the \textit{classes}.
    \item The physical system might have \textit{latent} variables, possibly also represented in the specification. These variables are never observed, so observations should be concentrated in the $\nicefrac{\uset{e}}{\varnothing}$ classes.
d6ce783e   Francisco Coelho   comentários e mac...
221
\end{itemize}
8751b392   Francisco Coelho   Completing the SB...
222
223

\todo{must adapt} Our path, traced by equations (\ref{eq:prob.total.choice}) and (\ref{eq:prob.stablemodel} --- \ref{eq:prob.events}), starts with the probability of total choices, $\pr{C = c}$, expands it to stable models, $\pr{S = s}$, and then to worlds $\pr{W = w}$ and events $\pr{E = e}$.
d6ce783e   Francisco Coelho   comentários e mac...
224
225

\begin{enumerate}
8751b392   Francisco Coelho   Completing the SB...
226
227
228
    \item \textbf{Total Choices.} This case is given by $\pr{C = c}$, from equation \ref{eq:prob.total.choice}. Each total choice $C = c$ (together with the facts and rules) entails some stable models, $s \in S_c$, and each stable model $S = s$ contains a single total choice $c_s \subseteq s$.
    \item \textbf{Stable Models.} Given a stable model $s \in \fml{S}$, and variables/values $x_{s,c} \in \intcc{0, 1}$, 
    \begin{equation}
d6ce783e   Francisco Coelho   comentários e mac...
229
        \pr{S = s \given C = c} = \begin{cases}
3e0f9b8a   Francisco Coelho   back to work?
230
231
232
233
            x_{s,c} & \text{if~} s \in S_c,\cr
            0&\text{otherwise}
        \end{cases}
        \label{eq:prob.stablemodel}
8751b392   Francisco Coelho   Completing the SB...
234
    \end{equation}
d6ce783e   Francisco Coelho   comentários e mac...
235
    such that $\sum_{s \in S_c} x_{s,c} = 1$.
3e0f9b8a   Francisco Coelho   back to work?
236
237
    \item\label{item:world.cases} \textbf{Worlds.} Each world $W  = w$ either:
    \begin{enumerate}
d6ce783e   Francisco Coelho   comentários e mac...
238
        \item Is a \textit{stable model}. Then 
8751b392   Francisco Coelho   Completing the SB...
239
        \begin{equation}
3e0f9b8a   Francisco Coelho   back to work?
240
            \pr{W  = w \given C = c} = \pr{S = s \given C = c}.
d6ce783e   Francisco Coelho   comentários e mac...
241
            \label{eq:world.fold.stablemodel}
53b3b48c   Francisco Coelho   Started pre-paper...
242
        \end{equation}
3e0f9b8a   Francisco Coelho   back to work?
243
        \item \textit{Contains} some stable models. Then
53b3b48c   Francisco Coelho   Started pre-paper...
244
245
        \begin{equation}
            \pr{W  = w \given C = c} = \prod_{s \subset w}\pr{S = s \given C = c}.
d6ce783e   Francisco Coelho   comentários e mac...
246
            \label{eq:world.fold.superset}
3e0f9b8a   Francisco Coelho   back to work?
247
        \end{equation}
d6ce783e   Francisco Coelho   comentários e mac...
248
        \item \textit{Is contained} in some stable models. Then
3e0f9b8a   Francisco Coelho   back to work?
249
        \begin{equation}
d6ce783e   Francisco Coelho   comentários e mac...
250
            \pr{W  = w \given C = c} = \sum_{s \supset w}\pr{S = s \given C = c}.
3e0f9b8a   Francisco Coelho   back to work?
251
            \label{eq:world.fold.subset}
d6ce783e   Francisco Coelho   comentários e mac...
252
        \end{equation}
3e0f9b8a   Francisco Coelho   back to work?
253
        \item Neither contains nor is contained by a stable model. Then
d6ce783e   Francisco Coelho   comentários e mac...
254
        \begin{equation}
3e0f9b8a   Francisco Coelho   back to work?
255
            \pr{W  = w} = 0.
53b3b48c   Francisco Coelho   Started pre-paper...
256
257
            \label{eq:world.fold.independent}
        \end{equation}
3e0f9b8a   Francisco Coelho   back to work?
258
    \end{enumerate}
9d633d90   Francisco Coelho   Paper Draft: Stab...
259
    \item \textbf{Events.} For each event $E = e$,
3e0f9b8a   Francisco Coelho   back to work?
260
    \begin{equation}
9d633d90   Francisco Coelho   Paper Draft: Stab...
261
        \pr{E = e \given C = c} = \begin{cases}
3e0f9b8a   Francisco Coelho   back to work?
262
263
264
265
266
            \pr{W = e \given C = c} & e \in \fml{W}, \cr
            0 & \text{otherwise}.
            \end{cases}
        \label{eq:prob.events}
    \end{equation}
9d633d90   Francisco Coelho   Paper Draft: Stab...
267
268
\end{enumerate}

3e0f9b8a   Francisco Coelho   back to work?
269
Since stable model are minimal, there is no proper chain $s_1 \subset w \subset s_2$ so each world folds into exactly one ot the four cases of point \ref{item:world.cases} above.
53b3b48c   Francisco Coelho   Started pre-paper...
270

3e0f9b8a   Francisco Coelho   back to work?
271
272
273
274
% PARAMETERS FOR UNCERTAINTY

Equation (\ref{eq:prob.stablemodel}) expresses the lack of knowledge about the probability assignment when a single total choice entails more than one stable model. In this case, how to distribute the respective probability? Our answer to this problem consists in assigning an unknown probability, $x_{s,c}$, conditional on the total choice, $c$, to each stable model $s$. This approach allow the expression of an unknown quantity and future estimation, given observed data.

9d633d90   Francisco Coelho   Paper Draft: Stab...
275
% STABLE MODEL
3e0f9b8a   Francisco Coelho   back to work?
276
277
278
The stable model case, in equation (\ref{eq:world.fold.stablemodel}), identifies the probability of a stable model \textit{as a world} with its probability as defined previously in equation (\ref{eq:prob.stablemodel}), as a stable model.

% SUPERSET
3f125ca5   Francisco Coelho   Pre-paper rewrite...
279
280
281
Equation \ref{eq:world.fold.superset} results from conditional independence of the stable models $s \subset w$. Conditional independence of stable worlds asserts a least informed strategy that we make explicit:

\begin{assumption}
505cdc43   Francisco Coelho   long due comeback
282
    Stable models are conditionally independent, given their total choices.
3f125ca5   Francisco Coelho   Pre-paper rewrite...
283
284
285
286
287
288
\end{assumption}

Consider the stable models $ab, ac$ from the example above. They result from the clause $b \vee c \leftarrow a$ and the total choice $a$. These formulas alone impose no relation between $b$ and $c$ (given $a$), so none should be assumed. Dependence relations are further discussed in Subsection (\ref{subsec:dependence}).

% SUBSET
\hrule
3e0f9b8a   Francisco Coelho   back to work?
289
290

\bigskip
3f125ca5   Francisco Coelho   Pre-paper rewrite...
291
292
293
294
295
I'm not sure about what to say here.\marginpar{todo}

My first guess was
\begin{equation*}
    \pr{W  = w \given C = c} = \sum_{s \supset w}\pr{S = s \given C = c}.
9d633d90   Francisco Coelho   Paper Draft: Stab...
296
297
\end{equation*}

d6ce783e   Francisco Coelho   comentários e mac...
298
$\pr{W = w \given C = c}$ already separates $\pr{W}$ into \textbf{disjoint} events!
9d633d90   Francisco Coelho   Paper Draft: Stab...
299

8751b392   Francisco Coelho   Completing the SB...
300
Also, I am assuming that stable models are independent. 
3f125ca5   Francisco Coelho   Pre-paper rewrite...
301

8751b392   Francisco Coelho   Completing the SB...
302
303
This would entail $p(w) = p(s_1) + p(s_2) - p(s_1)p(s_2)$ \textit{if I'm bound to set inclusion}. But I'm not. I'm defining a relation

353a8086   Francisco Coelho   alterações feitas...
304
Also, if I set $p(w) =  p(s_1) + p(s_2)$ and respect the laws of probability, this entails $p(s_1)p(s_2) = 0$.
3e0f9b8a   Francisco Coelho   back to work?
305

d6ce783e   Francisco Coelho   comentários e mac...
306
So, maybe what I want is (1) to define the cover $\hat{w} = \cup_{s \supset w} s$
9d633d90   Francisco Coelho   Paper Draft: Stab...
307
308

\begin{equation*}
d6ce783e   Francisco Coelho   comentários e mac...
309
    \pr{W  = w \given C = c} = \sum_{s \supset w}\pr{S = s \given C = c} - \pr{W = \hat{w} \given C = c}.
3f125ca5   Francisco Coelho   Pre-paper rewrite...
310
311
312
\end{equation*}

But this doesn't works, because we'd get $\pr{W = a \given C = a} < 1$.
d6ce783e   Francisco Coelho   comentários e mac...
313
%
9d633d90   Francisco Coelho   Paper Draft: Stab...
314
315
316
317

%
\bigskip
\hrule
3e0f9b8a   Francisco Coelho   back to work?
318
319
320
321

% INDEPENDENCE

A world that neither contains nor is contained in a stable model describes a case that, according to the specification, should never be observed. So the respective probability is set to zero, per equation (\ref{eq:world.fold.independent}).
3f125ca5   Francisco Coelho   Pre-paper rewrite...
322
323
%
%   ================================================================
d6ce783e   Francisco Coelho   comentários e mac...
324
%
3e0f9b8a   Francisco Coelho   back to work?
325
\subsection{Dependence}
505cdc43   Francisco Coelho   long due comeback
326
\label{subsec:dependence}
3f125ca5   Francisco Coelho   Pre-paper rewrite...
327

7ae9c686   Francisco Coelho   2022-11-29 | Reun...
328
Dependence relations in the underlying system can be explicitly expressed in the specification. 
3e0f9b8a   Francisco Coelho   back to work?
329
330
331
332

For example, $b \leftarrow c \wedge d$, where $d$ is an atomic choice, explicitly expressing this dependence between $b$ and $c$. One would get, for example, the specification
$$
0.3::a, b \vee c \leftarrow a, 0.2::d, b \leftarrow c \wedge d.
d080b400   Francisco Coelho   Paper draft: Exte...
333
$$
3e0f9b8a   Francisco Coelho   back to work?
334
335
336
with the stable models
$
\co{ad}, \co{a}d, a\co{d}b, a\co{d}c, adb
8751b392   Francisco Coelho   Completing the SB...
337
338
339
340
341
342
343
344
345
346
$. 


The interesting case is the subtree of the total choice $ad$. Notice that no stable model $s$ contains $adc$ because (1)  $adb$ is a stable model and (2) if $adc \subset s$ then $b \in s$ so $adb \subset s$. 

Following equations (\ref{eq:world.fold.stablemodel}) and (\ref{eq:world.fold.independent}) this sets 
\begin{equation*}
    \begin{cases}
        \pr{W = adc \given C = ad} = 0,\cr
        \pr{W = adb \given C = ad} = 1
3e0f9b8a   Francisco Coelho   back to work?
347
348
    \end{cases}
\end{equation*}
8751b392   Francisco Coelho   Completing the SB...
349
350
351
352
353
which concentrates all probability mass from the total choice $ad$ in the $adb$ branch, including the node $W = adbc$. This leads to the following cases:
$$
\begin{array}{l|r}
    x & \pr{W = x \given C = ad}\\
    \hline
d6ce783e   Francisco Coelho   comentários e mac...
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
    ad & 1 \\
    adb & 1\\
    adc & 0\\
    adbc & 1    
\end{array}
$$
so, for $C = ad$, 
$$
\begin{aligned}
    \pr{W = b} &= \frac{2}{4} \cr
    \pr{W = c} &= \frac{1}{4} \cr
    \pr{W = bc} &= \frac{1}{4} \cr
                &\not= \pr{W = b}\pr{W = c}
\end{aligned}
$$
\textit{i.e.} the events $W = b$ and $W = c$ are dependent and that dependence results directly from the segment $0.2::d, b \leftarrow c \wedge d$ in the specification.


%

%
\hrule
\begin{quotation}\note{Todo}
    
    Prove the four world cases (done), support the product (done) and sum (tbd) options, with the independence assumptions.
\end{quotation}
    
8751b392   Francisco Coelho   Completing the SB...
381
382
\section{Developed Example}

d6ce783e   Francisco Coelho   comentários e mac...
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
We continue with the specification from equation \ref{eq:example.1}. 

\textbf{Step 1: Total Choices.} The total choices, and respective stable models, are
\begin{center}
    \begin{tabular}{l|r|r}
        Total Choice ($c$) & $\pr{C = c}$ & Stable Models ($s$)\\
        \hline 
        $a$ & $0.3$ & $ab$ and $ac$.\\
        $\co{a} = \neg a$ & $\co{0.3} = 0.7$ & $\co{a}$.
    \end{tabular}
\end{center}

\textbf{Step 2: Stable Models.} Suppose now that 
\begin{center}
    \begin{tabular}{l|c|r}
        Stable Models ($s$) & Total Choice ($c$)  & $\pr{S = c \given C = c}$\\
        \hline 
        $\co{a}$    & $1.0$ & $\co{a}$. \\
        $ab$        & $0.8$ & $a$. \\
        $ac$        & $0.2 = \co{0.8}$ & $a$.
    \end{tabular}
\end{center}

\textbf{Step 3: Worlds.} Following equations \ref{eq:world.fold.stablemodel} --- \ref{eq:world.fold.independent} we get:
\begin{center}
    \begin{tabular}{l|c|l|c|r}
        Occ. ($o$) & S.M. ($s$) & Relation & T.C. ($c$)  & $\pr{W  = w}$\\
        \hline 
8751b392   Francisco Coelho   Completing the SB...
411
412
        $\emptyset$ & all           & contained & $a$, $\co{a}$ & $1.0$ \\ 
        $a$         & $ab$, $ac$    & contained & $a$ & $0.8\times 0.3 + 0.2\times 0.3 = 0.3$ \\
353a8086   Francisco Coelho   alterações feitas...
413
        $b$         & $ab$          & contained & $a$ & $0.8\times 0.3 = 0.24$ \\ 
d6ce783e   Francisco Coelho   comentários e mac...
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
        $c$         & $ac$          & contained & $a$ & $0.2\times 0.3 = 0.06$ \\ 
        $\co{a}$    & $\co{a}$      & stable model & $\co{a}$ & $1.0\times 0.3 = 0.3$ \\
        $\co{b}$    & none          & independent & none & $0.0$ \\
        $\co{c}$    & none              & \ldots & & \\
        $ab$        & $ab$          & stable model & $a$ & $0.24$ \\  
        $ac$        & $ac$          & stable model & $a$ & $0.06$ \\  
        $a\co{b}$   & none              & \ldots & & \\
        $a\co{c}$   & none              & \ldots & & \\
        $\co{a}b$   & $\co{a}$      & contains & $\co{a}$ & $1.0$ \\
        $\co{a}c$   &  $\co{a}$         & \ldots & & \\
        $\co{a}\co{b}$  & $\co{a}$      & \ldots & & \\
        $\co{a}\co{c}$  & $\co{a}$      & \ldots & & \\
        $abc$       & $ab$, $ac$    & contains & $a$ & $0.8\times 0.2 = 0.016$ \\
    \end{tabular}
\end{center}

\section*{References}

\printbibliography

\end{document}
8751b392   Francisco Coelho   Completing the SB...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

9b8ebd89   Francisco Coelho   progress pre-pape...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

9b8ebd89   Francisco Coelho   progress pre-pape...

8751b392   Francisco Coelho   Completing the SB...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

3f125ca5   Francisco Coelho   Pre-paper rewrite...

9b8ebd89   Francisco Coelho   progress pre-pape...

d6ce783e   Francisco Coelho   comentários e mac...

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

3f125ca5   Francisco Coelho   Pre-paper rewrite...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

505cdc43   Francisco Coelho   long due comeback

8751b392   Francisco Coelho   Completing the SB...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

505cdc43   Francisco Coelho   long due comeback

9d633d90   Francisco Coelho   Paper Draft: Stab...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

3f125ca5   Francisco Coelho   Pre-paper rewrite...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

53b3b48c   Francisco Coelho   Started pre-paper...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

64dd7c8f   Francisco Coelho   Solved subset exp...

64dd7c8f   Francisco Coelho   Solved subset exp...

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

64dd7c8f   Francisco Coelho   Solved subset exp...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

3e0f9b8a   Francisco Coelho   back to work?

d080b400   Francisco Coelho   Paper draft: Exte...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

0ca70415   Francisco Coelho   sync

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

505cdc43   Francisco Coelho   long due comeback

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

652cc0d6   Francisco Coelho   updated amartins ...

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

3e0f9b8a   Francisco Coelho   back to work?

8751b392   Francisco Coelho   Completing the SB...

505cdc43   Francisco Coelho   long due comeback

3e0f9b8a   Francisco Coelho   back to work?

652cc0d6   Francisco Coelho   updated amartins ...

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

652cc0d6   Francisco Coelho   updated amartins ...

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

652cc0d6   Francisco Coelho   updated amartins ...

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

353a8086   Francisco Coelho   alterações feitas...

3e0f9b8a   Francisco Coelho   back to work?

9d633d90   Francisco Coelho   Paper Draft: Stab...

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

d6ce783e   Francisco Coelho   comentários e mac...

3e0f9b8a   Francisco Coelho   back to work?

d6ce783e   Francisco Coelho   comentários e mac...