Theory Example_A
theory Example_A
imports "../Classifying_Markov_Chain_States"
begin
section ‹Example A› text_raw ‹\label{ex:A}›
text ‹
We formalize the following Markov chain:
\begin{center}
\begin{tikzpicture}[thick]
\path [fill, color = gray!30] (0, 0) circle(0.6) ;
\path [fill, color = gray!30] (1, 1) circle(0.6) ;
\path [fill, color = gray!30] (4.5, 0.66) ellipse(2 and 1.9) ;
\node (bot) at (-1, 0) {} ;
\node[draw,circle] (A) at (0, 0) {$A$} ;
\node[draw,circle] (B) at (1, 1) {$B$} ;
\node[draw,circle] (C1) at (3, 0) {$C_1$} ;
\node[draw,circle] (C2) at (6, 0) {$C_2$} ;
\node[draw,circle] (C3) at (4.5, 2) {$C_3$} ;
\path[->, >=latex]
(bot) edge (A)
(A) edge node [above] {$\frac{1}{2}$} (B)
edge node [below] {$\frac{1}{2}$} (C1)
(B) edge [loop above] node [left] {$\frac{1}{2}$} (B)
edge [out = 0] node [above] {$\frac{1}{2}$} (C1)
(C1) edge [loop above] node [above] {$\frac{1}{3}$} (C1)
edge [bend left=15] node [above] {$\frac{1}{3}$} (C2)
edge [bend left=15] node [above] {$\frac{1}{3}$} (C3)
(C2) edge [loop right] node [above] {$\frac{1}{3}$} (C2)
edge [bend left=15] node [above] {$\frac{1}{3}$} (C1)
edge [bend left=15] node [above] {$\frac{1}{3}$} (C3)
(C3) edge [loop right] node [above] {$\frac{1}{2}$} (C3)
edge [bend left=15] node [above] {$\frac{1}{4}$} (C1)
edge [bend left=15] node [above] {$\frac{1}{4}$} (C2) ;
\end{tikzpicture}
\end{center}
First we define the state space as its own type:
›