First part of ex 9.
1 \documentclass[a4paper, 10pt, pagesize, smallheadings]{article}
3 %\usepackage[latin1]{inputenc}
4 \usepackage{amsmath, amsthm, amssymb}
7 \usepackage{algorithmic}
11 \title{Theory I, Sheet 9 Solution}
13 \renewcommand{\familydefault}{\sfdefault}
14 \newcommand{\Pos}{\mathcal{P}os}
15 \newcommand{\E}{\mathcal{E}}
16 \newcommand{\D}{\mathcal{D}}
17 \newcommand{\J}{\mathcal{J}}
18 \include{pythonlisting}
24 \section*{Exercise 9.1.3}
26 ADT_{bool} = &(\Sigma_{bool}, \E)\\
27 \Sigma_{bool} = &\{true^{(0)}, false^{(0)}, not^{(1)}, and^{(2)}, or^{(2)}\}\\
28 \E = &\{true \approx not(false),\\
29 & false \approx not(true),\\
30 & not(not(x)) \approx x\\
31 & and(x, y) \approx not(or(not(x), not(y))),\\
32 & or(x, y) \approx not(and(not(x), not(y)))\}\\
35 \section*{Exercise 9.1.4}
37 \D_{bool} &= (M, \J)\\
42 \J(and)(x, y) &= min(x, y)\\
43 \J(or)(x, y) &= max(x, y)\\