mirror of
https://gitlab.cs.fau.de/ik15ydit/latexandmore.git
synced 2024-11-25 21:25:02 +01:00
stuff
This commit is contained in:
parent
77effc3e87
commit
cb01955cc4
@ -7,12 +7,31 @@
|
|||||||
\date{ }
|
\date{ }
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
|
%----------------------------------%
|
||||||
\textbf{Referenzaufgabe:} \\
|
\textbf{Referenzaufgabe:} \\
|
||||||
\\
|
\\
|
||||||
|
\textbf{data List} a = $Nil$ $|$ $Cons$ a \textbf{List} a
|
||||||
\begin{align*}
|
\begin{align*}
|
||||||
snoc\;Nil\;a &= Cons\;a\;Nil
|
snoc\;Nil\;a &= Cons\;a\;Nil\\
|
||||||
snoc(Cons\;x\;xs)\;a &= Cons\;x(snoc\;xs\;a)
|
snoc(Cons\;x\;xs)\;a &= Cons\;x\;(snoc\;xs\;a)
|
||||||
\end{align*}
|
\end{align*}
|
||||||
|
\begin{align*}
|
||||||
|
Nil + ys &= ys\\
|
||||||
|
(Cons\;x\;xs) + ys &= Cons\;x\;(xs + ys)
|
||||||
|
\end{align*}
|
||||||
|
\underline{Beweisen sie dass:}\\
|
||||||
|
$\forall e,\;xs,\;ys\\xs+(Cons\;e\;ys) = (snoc\;xs\;e)+ys$ \\\\
|
||||||
|
%----------------------------------%
|
||||||
|
\textbf{Induktionsanfang:}\\\\
|
||||||
|
$xs = Nil$\;\;$\Rightarrow$ Einsetzen und beide Seiten maximal vereinfachen
|
||||||
|
\begin{align*}
|
||||||
|
Nil+(Cons\;e\;ys) &= (snoc\;Nil\;e)+ys\\
|
||||||
|
Cons\;e\;ys &= (snoc\;Nil\;e)+ys\\
|
||||||
|
Cons\;e\;ys &= (Cons e Nil) + ys\\
|
||||||
|
Cons\;e\;ys &= Cons\;e (Nil + ys)\\
|
||||||
|
Cons\;e\;ys &= Cons\;e\;ys
|
||||||
|
\end{align*}
|
||||||
|
|
||||||
\begin{tiny}
|
\begin{tiny}
|
||||||
\copyright\ Joint-Troll-Expert-Group (JTEG) 2015
|
\copyright\ Joint-Troll-Expert-Group (JTEG) 2015
|
||||||
\end{tiny}
|
\end{tiny}
|
||||||
|
Loading…
Reference in New Issue
Block a user