[FMFP] Exam notes for FP almost complete

This commit is contained in:
2026-07-13 13:07:12 +02:00
parent f36189fac9
commit 4ca561ce49
10 changed files with 41 additions and 4 deletions
@@ -1,4 +1,13 @@
\subsubsection{Type Inference}
\begin{examdetails}
There typically is one such task. They provide the inference rules
\end{examdetails}
The proof trees are again drawn up bottom up, applying rules from the outside in.
\begin{enumerate}
\item
\item Create a proof tree using the typing rules.
\item During the proof, keep track of what the applications of rules tell us about types in a list.
\item After reaching leafs in the prooftree, resolve the types by inserting the now known types into the types you kept in the list.
\end{enumerate}
Remember that not all expressions are typeable, so if you end up getting an invalid tree or a conflict of types, this is very much possible.
To prove that the type of an expression is correct, we can simply draw up a type derivation tree, using the typing rules from Section~\ref{sec:mini-haskell}.
@@ -0,0 +1 @@
\subsubsection{IMP}
@@ -0,0 +1,5 @@
\subsubsection{Operational Semantics}
\paragraph{Big Step Semantics}
\paragraph{Small Step Semantics}
@@ -0,0 +1 @@
\subsubsection{Axiomatic Semantics}
@@ -0,0 +1 @@
\subsubsection{Modelling}
@@ -0,0 +1 @@
\subsubsection{Linear Time Properties (LTL)}