-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontradiction.tex
50 lines (36 loc) · 961 Bytes
/
contradiction.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\imageslide{badd12.pdf}
\begin{frame}[fragile]
\begin{haskellcode}
data Perhaps a = Unknown | Known a | Contradiction
\end{haskellcode}
\pnl
\begin{haskellcode}
instance Eq a => BoundedJoinSemiLattice (Perhaps a) where
bottom = Unknown
(\/) Unknown x = x
(\/) x Unknown = x
(\/) Contradiction _ = Contradiction
(\/) _ Contradiction = Contradiction
(\/) (Known a) (Known b) =
if a == b
then Known a
else Contradiction
\end{haskellcode}
\end{frame}
\begin{frame}
\begin{columns}
\column{0.5\textwidth}
\includegraphics[scale=0.65]{flat.pdf}
\pause
\column{0.2\textwidth}
\column{0.3\textwidth}
\includegraphics[scale=0.65]{more-information.pdf}
\end{columns}
\end{frame}
\imageslide{perhaps1.pdf}
\imageslide{perhaps2.pdf}
\imageslide[0.6]{doubleplus4.pdf}
\imageslide[0.6]{doubleplus5.pdf}
\imageslide[0.6]{doubleplus6.pdf}
\imageslide[0.6]{doubleplus7.pdf}
\imageslide[0.6]{doubleplus8.pdf}