%        File: .tex
%
% (c) Copyright 2008 Andrea Lo Pumo aka AlpT <alpt@freaknet.org>
%
% This source code is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License as published 
% by the Free Software Foundation; either version 2 of the License,
% or (at your option) any later version.
%
% This source code is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% Please refer to the GNU Public License for more details.
%
% You should have received a copy of the GNU Public License along with
% this source code; if not, write to:
% Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%

\documentclass[a4paper]{article}
%%% 	 Orientamento	      %%%
%\usepackage[landscape]{geometry}
%%%			      %%%

%\usepackage{xr-hyper}
\usepackage{amath}


%\externaldocument[TOP-]{topologia}[../../topologia/topologia.pdf]
\ifpdf
%\newcommand{\TOP}[1]{\T{[TOP,\ref{TOP-#1},pg.\pageref{TOP-#1}]}}
\else
%\newcommand{\TOP}[1]{\T{[TOP,x.y.z,pg.xx]}}

% add label debugging if we are not compiling pdf.
\let\oldlabel\label
\renewcommand{\label}[1]{ [#1] \oldlabel{#1}}
\fi

\begin{document}
\title{}
\author{alopumo@gmail.com}


\pagenumbering{roman}
\maketitle{}


%\input{gpl}

\clearpage
\tableofcontents
\clearpage
\pagenumbering{arabic}

\let\oldsection\section
\renewcommand{\section}[1]{\oldsection{#1}\ilabel{#1}}
\let\oldsubsection\subsection
\renewcommand{\subsection}[1]{\oldsubsection{#1}\ilabel{#1}}
\let\oldsubsubsection\subsubsection
\renewcommand{\subsubsection}[1]{\oldsubsubsection{#1}\ilabel{#1}}

\begin{oss}\label{lll1}
	Una partizione di $\Omega$ puo' essere specificata da una qualsiasi funzione $f:\Omega \longrightarrow S$, dove $S$ e' un insieme non vuoto. Cosi': $\mathcal{D}=\pgra{\inv f (s) \;|\; s\in S}$. Inoltre, $|S|=|\mathcal{D}|$.
	
	Una funzione $\Omega \longrightarrow S$ puo' essere specificata da una partizione $\mathcal{D}$ di $\Omega$ tale che $|\mathcal{D}|=|S|$. Infatti, sia $b:D\longrightarrow S$ la biezione che rende vera $|\mathcal{D}|=|S|$, allora una funzione e' $f(d) = s\in S$, dove $s$ e' l'unica soluzione della formula 	$d\in \inv b (x),\;\;x\in S$.
\end{oss}
\begin{statm}
	La definizione di $f$ e' stata resa dal cercare un qualcosa che funzionasse come un $p$ 
	di una variabile. %$p(\inv f {s})$  p associa a un $D$ qualcosa 
	%	e cche  di n 
	Data la definizione, ho scelto di svolgere quanto di dovere; 
ho controllato, che $f$ e' ben definita, ovvero che quella formula strana ha senso e definisce una funzione;
per definire una funzione serve dimostrare che per ogni elemento del dominio esiste un solo elemento del codominio;   $\forall d \in dom(f) \exists ! s \in cod(f): (d,s) \in f$;\\
ho visto che bastava dire la soluzione di $d\in \inv b(x)$ fosse unica;
ho cercato di dimostrare $\exists ! x\in S\;\;d\in \inv b (x)$, 
ho prima visto che esiste un tale $x$; mi sono avvalso della proprieta' $\bigcup_{D\in \mathcal{D}} D=\Omega$
della partizione $\Omega$; successivamente provando con un $s' \neq s$  che rendesse vera $d \in \inv b (s')$, ho trovato un assurdo; e' spuntata la proprieta' $D \cap D' = \0\;\;\forall D\neq D' \in \mathcal{D}$ che mi ha fatto arrivare alla conclusione.  
\end{statm}

\begin{thm}(caratterizzazione di ``variabile random che segue una certa distribuzione'')\\
	$\Omega$ non vuoto.\\
	$S$ non vuoto.\\ 
	Una variabile random  $X$ che segue una distribuzione $\mathcal{P}_S:S \longrightarrow [0,1]$  
	e' un insieme $X \( \Omega \longrightarrow S$ tale che $f\in X \= \mathcal{P}_\Omega(\inv f (s)) = \mathcal{P}_S(\pgra{s})$.
\end{thm}



\def\Pr{{\ona{Pr}}}
\section{Case Splitting}

\begin{prop}
	
Sia $B=B1 \U B2$, con $B1 \cap B2 = 0$, allora

      \eal{&  \Pr(A|B) = \Pr(A | B1)\Pr(B1 | B) + \Pr(A | B2)\Pr(B2 | B) }
                 
\end{prop}
\begin{proof}
	per definizione di $\Pr(A|B)$: espandi il secondo membro e vedi,
   e anche perche' $|A \^ B| = |A\^B1|+|A\^B2|$.\\
\end{proof}







%%%%%%%
\printindex
\end{document}
