Commit 7ae9c6860130f3bd71250142999894e10313f100
1 parent
14eb34f8
Exists in
master
2022-11-29 | Reunião com o Bruno.
Showing
10 changed files
with
139 additions
and
6 deletions
Show diff stats
code/asp/bachelor.lp
code/asp/disj.lp
code/asp/roads.lp
No preview for this file type
text/00_PASP.synctex.gz
No preview for this file type
text/00_PASP.xdv
No preview for this file type
No preview for this file type
| ... | ... | @@ -0,0 +1,83 @@ |
| 1 | +\documentclass{standalone} | |
| 2 | + | |
| 3 | +\usepackage[x11colors]{xcolor} | |
| 4 | +% | |
| 5 | +\usepackage{tikz} | |
| 6 | +\tikzset{ | |
| 7 | + event/.style={}, | |
| 8 | + smodel/.style={fill=gray!25}, | |
| 9 | + tchoice/.style={draw, circle}, | |
| 10 | + indep/.style={draw, dashed}, | |
| 11 | + proptc/.style = {-latex, dashed}, | |
| 12 | + propsm/.style = {-latex, thick}, | |
| 13 | + doubt/.style = {gray} | |
| 14 | +} | |
| 15 | +\usetikzlibrary{calc, positioning} | |
| 16 | +% | |
| 17 | +\usepackage{hyperref} | |
| 18 | +\hypersetup{ | |
| 19 | + colorlinks=true, | |
| 20 | + linkcolor=blue, | |
| 21 | +} | |
| 22 | + | |
| 23 | + | |
| 24 | +\usepackage{commath} | |
| 25 | + | |
| 26 | + | |
| 27 | +% | |
| 28 | +% Local commands | |
| 29 | +% | |
| 30 | +\newcommand{\note}[1]{\marginpar{\scriptsize #1}} | |
| 31 | +\newcommand{\naf}{\ensuremath{\sim\!}} | |
| 32 | +\newcommand{\larr}{\ensuremath{\leftarrow}} | |
| 33 | +\newcommand{\at}[1]{\ensuremath{\!\del{#1}}} | |
| 34 | +\newcommand{\co}[1]{\ensuremath{\overline{#1}}} | |
| 35 | +\newcommand{\fml}[1]{\ensuremath{{\cal #1}}} | |
| 36 | +\newcommand{\deft}[1]{\textbf{#1}} | |
| 37 | +\newcommand{\pset}[1]{\ensuremath{\mathbb{P}\at{#1}}} | |
| 38 | +\newcommand{\ent}{\ensuremath{\lhd}} | |
| 39 | +\newcommand{\cset}[2]{\ensuremath{\set{#1,~#2}}} | |
| 40 | +\newcommand{\langof}[1]{\ensuremath{\fml{L}\at{#1}}} | |
| 41 | +\newcommand{\uset}[1]{\ensuremath{\left|{#1}\right>}} | |
| 42 | +\newcommand{\lset}[1]{\ensuremath{\left<{#1}\right|}} | |
| 43 | +\newcommand{\pr}[1]{\ensuremath{\mathrm{P}\at{#1}}} | |
| 44 | +\newcommand{\given}{\ensuremath{~\middle|~}} | |
| 45 | + | |
| 46 | +\begin{document} | |
| 47 | +\begin{tikzpicture} | |
| 48 | + \node[event] (E) {$\bot$}; | |
| 49 | + \node[tchoice, above left = of E] (a) {$a$}; | |
| 50 | + \node[smodel, above left = of a] (ab) {$ab$}; | |
| 51 | + \node[smodel, above right = of a] (ac) {$ac$}; | |
| 52 | + \node[event, below = of ab] (b) {$b$}; | |
| 53 | + \node[event, below = of ac] (c) {$c$}; | |
| 54 | + \node[event, above right = of ab] (abc) {$abc$}; | |
| 55 | + \node[indep, right = of ac] (bc) {$bc$}; | |
| 56 | + \node[tchoice, smodel, below right = of bc] (A) {$\co{a}$}; | |
| 57 | + \node[event, above = of A] (Ac) {$\co{a}c$}; | |
| 58 | + \node[event, above right = of Ac] (Abc) {$\co{a}bc$}; | |
| 59 | + % ---- | |
| 60 | + \draw[proptc] (a) to[bend left] (ab); | |
| 61 | + \draw[proptc] (a) to[bend right] (ac); | |
| 62 | + | |
| 63 | + \draw[propsm] (ab) to[bend left] (abc); | |
| 64 | + \draw[propsm] (ac) to[bend right] (abc); | |
| 65 | + | |
| 66 | + \draw[propsm] (A) to[bend right] (Ac); | |
| 67 | + \draw[propsm] (A) to[bend right] (Abc); | |
| 68 | + | |
| 69 | + \draw[doubt] (ab) to[bend right] (E); | |
| 70 | + \draw[doubt] (ac) to[bend right] (E); | |
| 71 | + \draw[doubt] (A) to[bend left] (E); | |
| 72 | + | |
| 73 | + \draw[doubt] (ab) to[bend right] (b); | |
| 74 | + \draw[doubt] (ac) to[bend left] (c); | |
| 75 | + \draw[doubt] (ab) to[bend left] (a); | |
| 76 | + \draw[doubt] (ac) to[bend right] (a); | |
| 77 | + \draw[doubt] (c) to[bend right] (bc); | |
| 78 | + \draw[doubt] (abc) to[bend left] (bc); | |
| 79 | + \draw[doubt] (Abc) to (bc); | |
| 80 | + \draw[doubt] (c) to[bend right] (Ac); | |
| 81 | +\end{tikzpicture} | |
| 82 | + | |
| 83 | +\end{document} | |
| 0 | 84 | \ No newline at end of file | ... | ... |
text/paper_01/pre-paper.pdf
No preview for this file type
text/paper_01/pre-paper.tex
| ... | ... | @@ -3,7 +3,16 @@ |
| 3 | 3 | \usepackage[x11colors]{xcolor} |
| 4 | 4 | % |
| 5 | 5 | \usepackage{tikz} |
| 6 | -\usetikzlibrary{calc} | |
| 6 | +\tikzset{ | |
| 7 | + event/.style={}, | |
| 8 | + smodel/.style={fill=gray!25}, | |
| 9 | + tchoice/.style={draw, circle}, | |
| 10 | + indep/.style={draw, dashed}, | |
| 11 | + proptc/.style = {-latex, dashed}, | |
| 12 | + propsm/.style = {-latex, thick}, | |
| 13 | + doubt/.style = {gray} | |
| 14 | +} | |
| 15 | +\usetikzlibrary{calc, positioning} | |
| 7 | 16 | % |
| 8 | 17 | \usepackage{hyperref} |
| 9 | 18 | \hypersetup{ |
| ... | ... | @@ -93,6 +102,44 @@ Currently, we are on the step two above: Extending a probability function (with |
| 93 | 102 | |
| 94 | 103 | \section{Extending Probabilities} |
| 95 | 104 | |
| 105 | +\begin{center} | |
| 106 | + \begin{tikzpicture} | |
| 107 | + \node[event] (E) {$\bot$}; | |
| 108 | + \node[tchoice, above left = of E] (a) {$a$}; | |
| 109 | + \node[smodel, above left = of a] (ab) {$ab$}; | |
| 110 | + \node[smodel, above right = of a] (ac) {$ac$}; | |
| 111 | + \node[event, below = of ab] (b) {$b$}; | |
| 112 | + \node[event, below = of ac] (c) {$c$}; | |
| 113 | + \node[event, above right = of ab] (abc) {$abc$}; | |
| 114 | + \node[indep, right = of ac] (bc) {$bc$}; | |
| 115 | + \node[tchoice, smodel, below right = of bc] (A) {$\co{a}$}; | |
| 116 | + \node[event, above = of A] (Ac) {$\co{a}c$}; | |
| 117 | + \node[event, above right = of Ac] (Abc) {$\co{a}bc$}; | |
| 118 | + % ---- | |
| 119 | + \draw[proptc] (a) to[bend left] (ab); | |
| 120 | + \draw[proptc] (a) to[bend right] (ac); | |
| 121 | + | |
| 122 | + \draw[propsm] (ab) to[bend left] (abc); | |
| 123 | + \draw[propsm] (ac) to[bend right] (abc); | |
| 124 | + | |
| 125 | + \draw[propsm] (A) to (Ac); | |
| 126 | + \draw[propsm] (A) to (Abc); | |
| 127 | + | |
| 128 | + \draw[doubt] (ab) to[bend right] (E); | |
| 129 | + \draw[doubt] (ac) to[bend right] (E); | |
| 130 | + \draw[doubt] (A) to[bend left] (E); | |
| 131 | + | |
| 132 | + \draw[doubt] (ab) to[bend right] (b); | |
| 133 | + \draw[doubt] (ac) to[bend left] (c); | |
| 134 | + \draw[doubt] (ab) to[bend left] (a); | |
| 135 | + \draw[doubt] (ac) to[bend right] (a); | |
| 136 | + \draw[doubt] (c) to[bend right] (bc); | |
| 137 | + \draw[doubt] (abc) to[bend left] (bc); | |
| 138 | + \draw[doubt] (Abc) to (bc); | |
| 139 | + \draw[doubt] (c) to[bend right] (Ac); | |
| 140 | + \end{tikzpicture} | |
| 141 | +\end{center} | |
| 142 | + | |
| 96 | 143 | 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}$. |
| 97 | 144 | |
| 98 | 145 | % 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. | ... | ... |