standardised doc for jrocnik
authorWalther Neuper <neuper@ist.tugraz.at>
Mon, 05 Mar 2012 10:15:34 +0100
changeset 423786d1f4e7870b1
parent 42377 da3a55182442
child 42382 a5089b8d884a
child 42384 cc5ba197f1b0
standardised doc for jrocnik

TODO check if LaTeX still works.
doc-src/isac/jrocnik/Makefile
doc-src/isac/jrocnik/bakkarbeit.tcp
doc-src/isac/jrocnik/bakkarbeit.tps
doc-src/isac/jrocnik/bakkarbeit_jrocnik.tex
doc-src/isac/jrocnik/jrocnik_bakk.tex
doc-src/isac/jrocnik/jrocnik_present.tex
     1.1 --- a/doc-src/isac/jrocnik/Makefile	Mon Feb 20 18:29:43 2012 +0100
     1.2 +++ b/doc-src/isac/jrocnik/Makefile	Mon Mar 05 10:15:34 2012 +0100
     1.3 @@ -37,8 +37,8 @@
     1.4  mrproper:
     1.5  	@rm -f $(DEFAULT_GARBAGE) $(DEFAULT_OUTPUT) $(GARBAGE) $(OUTPUT)
     1.6  
     1.7 -THESIS_NAME = bakkarbeit_jrocnik
     1.8 -THESIS_FILES = bakkarbeit_jrocnik.tex
     1.9 +THESIS_NAME = jrocnik_bakk
    1.10 +THESIS_FILES = jrocnik_bakk.tex
    1.11  
    1.12  DOCU_NAME = Inverse_Z_Transform/doc/Inverse_Z_Transform
    1.13  DOCU_FILES = Inverse_Z_Transform/doc/root.tex 
     2.1 --- a/doc-src/isac/jrocnik/bakkarbeit.tcp	Mon Feb 20 18:29:43 2012 +0100
     2.2 +++ b/doc-src/isac/jrocnik/bakkarbeit.tcp	Mon Mar 05 10:15:34 2012 +0100
     2.3 @@ -3,7 +3,7 @@
     2.4  Version=4
     2.5  
     2.6  [ProjectInfo]
     2.7 -MainFile=bakkarbeit_jrocnik.tex
     2.8 +MainFile=jrocnik_bakk.tex
     2.9  UseBibTeX=1
    2.10  UseMakeIndex=0
    2.11  ActiveProfile=LaTeX => PDF (Sumatra)
     3.1 --- a/doc-src/isac/jrocnik/bakkarbeit.tps	Mon Feb 20 18:29:43 2012 +0100
     3.2 +++ b/doc-src/isac/jrocnik/bakkarbeit.tps	Mon Mar 05 10:15:34 2012 +0100
     3.3 @@ -21,7 +21,7 @@
     3.4  NormalPos.right=112
     3.5  NormalPos.bottom=299
     3.6  Class=CLatexEdit
     3.7 -Document=bakkarbeit_jrocnik.tex
     3.8 +Document=jrocnik_bakk.tex
     3.9  
    3.10  [Frame0_Row0]
    3.11  cyCur=848
     4.1 --- a/doc-src/isac/jrocnik/bakkarbeit_jrocnik.tex	Mon Feb 20 18:29:43 2012 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,551 +0,0 @@
     4.4 -%   Title:  bakkarbeit_jrocnik.tex
     4.5 -%   Author: Jan Rocnik
     4.6 -%   (c) copyright due to lincense terms.
     4.7 -%2345678901234567890123456789012345678901234567890123456789012345678901234567890
     4.8 -%       10        20        30        40        50        60        70        80
     4.9 -
    4.10 -%define document class
    4.11 -\documentclass[a4paper, 12pt]{article}
    4.12 -
    4.13 -%packages for language and input
    4.14 -\usepackage[english]{babel} 
    4.15 -\usepackage[T1]{fontenc}
    4.16 -\usepackage[latin1]{inputenc}
    4.17 -
    4.18 -%generel packages
    4.19 -\usepackage{url}
    4.20 -\usepackage{endnotes}
    4.21 -\usepackage{trfsigns}
    4.22 -\usepackage{setspace}
    4.23 -\usepackage[pdfpagelabels]{hyperref}
    4.24 -\usepackage{longtable}
    4.25 -
    4.26 -\usepackage{float} %For restylefloat
    4.27 -\newfloat{example}{h}{} %self made floats
    4.28 -\floatname{example}{Example} %name for float
    4.29 -\restylefloat{table} %float tables
    4.30 -\floatstyle{ruled} %boxes around floats
    4.31 -\restylefloat{example} %float examples --> boxes
    4.32 -
    4.33 -%colors and graphics
    4.34 -\usepackage{graphicx}
    4.35 -\usepackage{color}
    4.36 -\definecolor{lgray}{RGB}{238,238,238}
    4.37 -
    4.38 -%isabelle relevant packages
    4.39 -\usepackage{isabelle,isabellesym}
    4.40 -
    4.41 -%define isac logos
    4.42 -\def\isac{${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
    4.43 -\def\sisac{\footnotesize${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
    4.44 -
    4.45 -\newcommand{\HRule}{\rule{\linewidth}{0.2mm}}
    4.46 -
    4.47 -%start new even page
    4.48 -\usepackage{ifthen}
    4.49 -\newcommand{\newevenside}{
    4.50 -        \ifthenelse{\isodd{\thepage}}{\newpage}{
    4.51 -        \newpage
    4.52 -        \phantom{placeholder} % doesn't appear on page
    4.53 -        \thispagestyle{empty} % if want no header/footer
    4.54 -        \newpage
    4.55 -        }
    4.56 -}
    4.57 -
    4.58 -%----------// BEGIN DOCUMENT \\----------%
    4.59 -
    4.60 -\begin{document}
    4.61 -
    4.62 -%----------// TITLE PAGE \\----------%1
    4.63 -
    4.64 -\input{./bakkarbeit_titlepage.tex}
    4.65 -\newpage
    4.66 -
    4.67 -%----------// EMPTY PAGE \\----------%2
    4.68 -
    4.69 -\setcounter{page}{2}
    4.70 -\thispagestyle{empty}\mbox{}\newpage
    4.71 -
    4.72 -%----------// THANKS \\----------%3
    4.73 -
    4.74 -\setcounter{page}{3}
    4.75 -\begin{center}
    4.76 -	Special Thanks to\\
    4.77 -	\hfill \\
    4.78 -	\emph{Dr.techn. Walther Neuper}\\
    4.79 -	\emph{Dipl.-Ing. Bernhard Geiger}
    4.80 -\end{center}
    4.81 -\thispagestyle{empty}
    4.82 -\newpage
    4.83 -
    4.84 -%----------// EMPTY PAGE \\----------%4
    4.85 -
    4.86 -%the following command was replaced by \newevenside
    4.87 -%\thispagestyle{empty}\mbox{}\newpage
    4.88 -
    4.89 -%----------// ABSTRACT \\----------%5
    4.90 -
    4.91 -\newevenside
    4.92 -\begin{abstract}
    4.93 -The Baccalaureate Thesis creates interactive course material for Signal Processing (SP) based on the experimental educational math assistant Isabelle/{\sisac} ({\em Isa}belle for Transparent {\em C}alculations in Applied Mathematics).
    4.94 -\par The content of the course material is defined together with the Signal Processing and Speech Communication Laboratory (SPSC Lab) of Graz University of Technology (TUG). The content is planned to be used in specific lectures and labs of the SPSC and thus is thoroughly concerned with underlying mathematical and physical theory.
    4.95 -One challenge of this thesis is, that much theory required for SPSC is not yet mechanized in Computer Theorem Provers (CTP); so this thesis will provide preliminary definitions  and theorems (without proofs~!) implemented in Isabelle \emph{theories}.
    4.96 -\par Another challenge is the implementation of interactive courses: this is done within the educational math assistant Isabelle/{\sisac}, which is under development at TU Graz. The present state of {\sisac{}} happens to provide the {\em first} occasion for authoring by a non-member of the {\sisac}-developer team. So this challenge involves  alpha-testing of the underlying \emph{CTP-based programming language}, because error messages are still not user-friendly and need frequent contact with {\sisac}-developers.
    4.97 -So the practical outcome of this thesis is twofold:
    4.98 -\begin{enumerate}
    4.99 -\item Interactive course material hopefully useful in education within the SPSC Lab and within STEOP, the introductory orientation phase at TUG, as a preview for students in Telematics on later application of math knowledge introduced in the first semester and
   4.100 -\item A detailed description of technicalities in programming implemented as an interactive Isabelle/Isar theory, providing future programmers with guidelines and {\sisac}-developers with feedback in usability of the CTP-based program language. 
   4.101 -\end{enumerate}
   4.102 -\end{abstract}
   4.103 -\clearpage
   4.104 -
   4.105 -%----------// EMPTY PAGE \\----------%6
   4.106 -
   4.107 -%the following command was replaced by \newevenside
   4.108 -%\thispagestyle{empty}\mbox{}\newpage
   4.109 -
   4.110 -%----------// T O C \\----------%7
   4.111 -
   4.112 -\newevenside
   4.113 -
   4.114 -\pagenumbering{Roman}
   4.115 -%This thesis is structured into a fundamental part introducing the motivation, the basic notions concerning the thesis aswell as the {\sisac{}} project and describing the mathematic base. Further a automatically generated practical part representing the work on {\sisac{}} which can be extended.
   4.116 -\tableofcontents
   4.117 -\clearpage
   4.118 -\pagenumbering{arabic}
   4.119 -\setcounter{page}{8}
   4.120 -
   4.121 -%----------// PART-1 \\----------%
   4.122 -
   4.123 -\newevenside
   4.124 -
   4.125 -\part{Project Fundamentals}
   4.126 -
   4.127 -\section{Introduction}
   4.128 -Didactics of mathematics faces a specific issue, a gap between (1) introduction of math concepts and skills and (2) application of these concepts and skills, which ususally are separated into different units in curricula (for good reasons). For instance, (1) teaching partial fraction decomposition is separated from (2) application for inverse Z-transform in signal processing.
   4.129 -
   4.130 -This gap is an obstacle for applying math as an foundamental thinking technology in engineering: In (1) motivation is lacking because the question ``What is this stuff good for~?'' cannot be treated sufficiently, and in (2) the ``stuff'' is not available to students in higher semesters as widespread experience shows.
   4.131 -
   4.132 -\medskip
   4.133 -Motivated by this didactical issue on the one hand, and ongoing R\&D on a novel kind of educational mathematics assistant at Graz University of Technology~\footnote{http://www.ist.tugraz.at/isac/} promising to cope with this issue on the other hand, several institutes are planning to join their expertise: the Institutes for Institute for Information Systems and Computer Media (IICM), the Institute for Software Technology (IST), the Institutes for Mathematics, the Signal Processing and Speech Communication Institute (SPSC), the Institute for Structural Analysis and the Institute of Electrical Measurement and Measurement Signal Processing.
   4.134 -\par This thesis is the first attempt to tackle the above mentioned issue, it focuses on Telematics, because these specific studies focus on mathematics in STEOP, the introductory orientation phase. STEOP is considered an opportunity to investigate the impact of {\sisac}'s prototype on the issue and others.
   4.135 -
   4.136 -\medskip
   4.137 -The thesis is structured as follows: Part I concerns theory, part II the implementation work, where the latter is the main part.
   4.138 -\par In part I, Section~\ref{isabisac} gives a brief description of the state-of-the-art for educational math assistants (Section~\ref{emas}) and introduces the notions required for the implementation work (Section~\ref{math-auth}). In particular, Section~\ref{user-guid} explains, why math authoring in {\sisac{}} is {\em not} concerned with interaction (and thus not with user guidance etc at all~!). So a concise description of the thesis' goals needs to be postponed to Section~\ref{sec:goals}.
   4.139 -\par Section~\ref{sp} analyzes a problems defined by the SPSC for the knowledge already provided (Section~\ref{know-isab}, Section~\ref{know-isac}), discusses the selection of problems for implementation (Section~\ref{know-missing}) TODO: further structure ?
   4.140 -%(\S\ref{})
   4.141 -
   4.142 -\section{Mechanization of Math in Isabelle/{\isac}}\label{isabisac}
   4.143 -
   4.144 -%\subsubsection*{Notes on Mechanization of Mathematics}
   4.145 -%This thesis tries to \emph{connect} these two worlds and is one of the first guidelines to implement problem classes in {\sisac}. As we are still in a eary part of development, this is the first thesis dealing within this topic and there is \emph{no} related work to guid through. A more detailed description about this fact can be found in Section \ref{sec:related}.
   4.146 -%The major challenge of the practical part, of this thesis, is, that "connecting the two worlds" involves programming in a CTP-based programming language which is in a very early state of prototyping. There is no concrete experience data ready to grep.
   4.147 -%
   4.148 -As mentioned in the introduction, a prototype of an educational math assistant called {\sisac}\footnote{{\sisac}=\textbf{Isa}belle \cite{Nipkow-Paulson-Wenzel:2002} for \textbf{C}alculations, see http://www.ist.tugraz.at/isac/.} bridges the gap between (1) introducation and (2) application of mathematics: {\sisac} is based on Computer Theorem Proving (CTP), a technology which requires each fact and each action justified by formal logic, so {{\sisac{}}} makes justifications transparent to students in interactive step-wise problem solving. By that way {\sisac} already can serve both:
   4.149 -\begin{enumerate}
   4.150 -\item Introduction of math stuff (in e.g. partial fraction decomposition) by stepwise explaining and exercising respective symbolic calculations with ``next step guidance (NSG)'' and rigorously checking steps freely input by students  --- this also in context with advanced applications (where the stuff to be taught in higher semesters can be skimmed through by NSG), and
   4.151 -\item Application of math stuff in advanced engineering courses (e.g. problems to be solved by inverse Z-transform in a Signal Processing Lab) --- and now without much ado about basic math techniques (like partical fraction decomposition): ``next step guidance'' supports students in independenly (re-)adopting such techniques.
   4.152 -\end{enumerate}
   4.153 -Before the question is answers, how {\sisac} accoplishes this task from a technical point of view, some remarks on the state-of-the-art is given, therefor follow up Section~\ref{emas}.
   4.154 -
   4.155 -\subsection{Educational Mathematics Assistants (EMAs)}\label{emas}
   4.156 -Educational software in mathematics is, if at all, based on Computer Algebra Systems (CAS, for instance \cite{progr-mathematica,prog-maple06}), Dynamic Geometry Systems (DGS, for instance \footnote{GeoGebra http://www.geogebra.org, Cinderella http://www.cinderella.de/, GCLC http://poincare.matf.bg.ac.rs/~janicic/gclc/}) or spread-sheets. These base technologies are used to program math lessons and sometimes even exercises. The latter are cumbersome: the steps towards a solution of such an interactive exercise need to be provided with feedback, where at each step a wide variety of possible input has to be foreseen by the programmer --- so such interactive exercises either require high development efforts or the exercises constrain possible inputs.
   4.157 -
   4.158 -A new generation of educational math assistants (EMAs) is emerging presently, which is based on Computer Theorem Proving (CTP). CTP, for instance Isabelle \cite{Nipkow-Paulson-Wenzel:2002} and Coq \cite{Huet_all:94}, is a technology which requires each fact and each action justified by formal logic. Pushed by demands for \textit{proven} correctness of safety-critical software CTP advances into software engineering; from these advancements computer mathematics benefits in general, and math education in particular. Two features of CTP are immediately beneficial for learning:
   4.159 -
   4.160 -\paragraph{CTP have knowledge in human readable format,} that is in standard predicate calculus. CTP following the LCF-tradition have that knowledge down to the basic definitions of set, equality, etc~\footnote{http://isabelle.in.tum.de/dist/library/HOL/HOL.html}; following the typical deductive development of math, natural numbers are defined and their properties proven~\footnote{http://isabelle.in.tum.de/dist/library/HOL/Number\_Theory/Primes.html}, etc. Present knowledge mechanized in CTP exceeds high-school mathematics by far, however by knowledge required in software technology, and not in other engineering sciences.
   4.161 -
   4.162 -\paragraph{CTP can model the whole problem solving process} in mathematical problem solving {\em within} a coherent logical framework. This is already being done by three projects, by Ralph-Johan Back \cite{Back-SD09}, by ActiveMath \cite{ActiveMath-MAIN11} and by Carnegie Mellon Tutor \cite{mat-tutor-cmu-MAIN11}.
   4.163 -
   4.164 -Having the whole problem solving process within a logical coherent system, such a design guarantees correctness of intermediate steps and of the result (which seems essential for math software); and the second advantage is that CTP provides a wealth of theories which can be exploited for mechanizing other features essential for educational software.
   4.165 -
   4.166 -\subsection{Generation of User Guidance in EMAs}\label{user-guid}
   4.167 -One essential feature for educational software is feedback to user input and assistance in coming to a solution.
   4.168 -
   4.169 -\paragraph{Checking user input} by ATP during stepwise problem solving is being accomplished by the three projects mentioned above \cite{Back-SD09,ActiveMath-MAIN11,mat-tutor-cmu-MAIN11} exclusively. They model the whole problem solving process as mentioned above, so all what happens between formalized assumptions (or formal specification) and goal (or fulfilled postcondition) can be mechanized. Such mechanization promises to greatly extend the scope of educational software in stepwise problem solving.
   4.170 -
   4.171 -\paragraph{Next step guidance (NSG)} comprises the system's ability to propose a next step; this is a challenge for CTP: either a radical restriction of the search space by restriction to very specific problem classes is required, or much care and effort is required in designing possible variants in the process of problem solving \cite{proof-strategies-11}.
   4.172 -
   4.173 -Another approach is restricted to problem solving in engineering domains, where a problem is specified by input, precondition, output and postcondition, and where the postcondition is proven by ATP behind the scenes \cite{wn:lucas-interp-12}: Here the possible variants in the process of problem solving are provided with feedback {\em automatically}, if the problem is described in a CTP-based programming language~\cite{plmms10}: the programmer only describes the math algorithm without caring about interaction (the respective program is functional and even has no in/output statements~!); interaction is generated as a side-effect by the interpreter --- an efficient separation of concern between math programmers and dialog designers promising application all over engineering disciplines.
   4.174 -
   4.175 -
   4.176 -\subsection{Math Authoring in Isabelle/\isac}\label{math-auth}
   4.177 -Authoring new mathematics knowledge in {\sisac} can be compared with ``application programming'' of engineering problems; most of such programming uses CAS-based programming languages (CAS = Computer Algebra Systems; e.g. Mathematica's \cite{progr-mathematica} or Maple's programming language \cite{prog-maple06}).
   4.178 -
   4.179 -{\sisac}, however, uses a novel type of CTP-based language \cite{plmms10} for describing how to constuct a solution to an engineering problem and for calling equation solvers, integration, etc~\footnote{Implementation of CAS-like functionality in CTP is not primarily concerned with efficiency, but with a didactic question: What to decide for: for high-brow algorithms at the state-of-the-art or for elementary algorithms comprehensible for students~?} within CTP; CTP can ensure ``systems that never make a mistake'' \cite{casproto} --- are impossible for CAS which have no logics underlying.
   4.180 -
   4.181 -With writing such CTP-based programs authoring is perfect, the application programmer is not concerned with interaction or with user guidance: this is concern of a novel kind of program interpreter called Lucas-Interpreter \cite{wn:lucas-interp-12}. This interpreter hands over control to a dialog component at each step of calculation (like a debugger at breakpoints) and calls automated CTP to check user input following personalized strategies according to a feedback module.
   4.182 -
   4.183 -\medskip
   4.184 -However ``application programming with CTP'' is not done with writing a program: according to the principles of CTP, each step must be justified. Such justifications are given by theorems. So all steps must be related to some theorem, if there is no such theorem it must be added to the existing knowledge, which is organized in so-called \textbf{theories} in  Isabelle. A theorem must be proven; fortunately Isabelle comprises a mechanism (called ``axiomatization''), which allows to omit proofs. Such a theorem is shown in Example~\ref{eg:neuper1}. %TODO: take your example !
   4.185 -
   4.186 -\begin{example}
   4.187 -{\small\begin{tabbing}
   4.188 -123\=123\=123\=123\=\kill
   4.189 -\hfill \\
   4.190 -\>axiomatization where \\
   4.191 -\>\>  rule1: "1 = $\delta$ [n]" and\\
   4.192 -\>\>  rule2: "|| z || > 1 ==> z / (z - 1) = u [n]" and\\
   4.193 -\>\>  rule3: "|| z || < 1 ==> z / (z - 1) = -u [-n - 1]" and \\
   4.194 -\>\>  rule4: "|| z || > || $\alpha$ || ==> z / (z - $\alpha$) = $\alpha^n$ * u [n]" and\\
   4.195 -\>\>  rule5: "|| z || < || $\alpha$ || ==> z / (z - $\alpha$) = -($\alpha^n$) * u [-n - 1]" and\\
   4.196 -\>\>  rule6: "|| z || > 1 ==> z/(z - 1)$^2$ = n $\cdot$ u [n]"
   4.197 -\end{tabbing}
   4.198 -}
   4.199 -\caption{Axiomatization in Isabelle\label{eg:neuper1}}
   4.200 -\end{example}
   4.201 -
   4.202 -In order to provide CTP with logical facts for checking user input, the Lucas-Interpreter requires a \textbf{specification}. Such a specification is shown in Example~ref{eg:neuper2}.
   4.203 -
   4.204 -\begin{example}
   4.205 -{\small\begin{tabbing}
   4.206 -123,\=postcond \=: \= $\forall \,A^\prime\, u^\prime \,v^\prime.\,$\=\kill
   4.207 -\hfill \\
   4.208 -Specification no.1:\\
   4.209 -%\>input\>: $\{\;r={\it arbitraryFix}\;\}$  \\
   4.210 -\>input    \>: $\{\;r\;\}$  \\
   4.211 -\>precond  \>: $0 < r$   \\
   4.212 -\>output   \>: $\{\;A,\; u,v\;\}$ \\
   4.213 -\>postcond \>:{\small  $\;A=2uv-u^2 \;\land\; (\frac{u}{2})^2+(\frac{v}{2})^2=r^2 \;\land$}\\
   4.214 -\>     \>\>{\small $\;\forall \;A^\prime\; u^\prime \;v^\prime.\;(A^\prime=2u^\prime v^\prime-(u^\prime)^2 \land
   4.215 -(\frac{u^\prime}{2})^2+(\frac{v^\prime}{2})^2=r^2) \Longrightarrow A^\prime \leq A$} \\
   4.216 -\>props\>: $\{\;A=2uv-u^2,\;(\frac{u}{2})^2+(\frac{v}{2})^2=r^2\;\}$
   4.217 -\end{tabbing}
   4.218 -}
   4.219 -\caption{Specification for the Lucas-Interpreter\label{eg:neuper2}}
   4.220 -\end{example}
   4.221 -
   4.222 -Such a specification is checked before the execution of a program is started, the same applies for sub-programs. In the following example program (Example~\ref{eg:subprob}) the sub-programs are designated by \ttfamily SubProblem \normalfont:
   4.223 -
   4.224 -\begin{example}
   4.225 -\hfill \\
   4.226 -{\ttfamily \begin{tabbing}
   4.227 -``(L\_L::bool list) = (\=SubProblem (\=Test','' \\
   4.228 -``\>\>[linear,univariate,equation,test],'' \\
   4.229 -``\>\>[Test,solve\_linear])'' \\
   4.230 -``\>[BOOL equ, REAL z])'' \\
   4.231 -\end{tabbing}
   4.232 -}
   4.233 -{\small\textit{
   4.234 -	\noindent If a programm requires a result which has to be calculated first we can use a subproblem to do so. In our specific case we wanted to calculate the zeros of a fraction and used a subproblem to calculate the zeros of the denominator polynom.
   4.235 -	}}
   4.236 -\caption{Ussage of Subproblems in Programms\label{eg:subprob}}
   4.237 -\end{example}
   4.238 -
   4.239 -
   4.240 -\subsection{Goals of the Thesis}\label{sec:goals}
   4.241 -Imagine a piece of software would be able to support you by understanding every problem class, upcoming in the first years attending university - wouldn't it be great?
   4.242 -\par {{\sisac{}}} tries to do that, but the current state of the art is miles away from this goal and a single implementation of a problem is not enough to cahnge this circumstamce. Through this fact it is all the more essential to try, test, research and document the implementation of problem classes from "`real world"' applications. Responding to the abstract at the begin of this document the thesis has two folds; on the one hand certainly to provide interactiv course material for Signal Processing (which means to implement a single problem provided by the Institute of Signal Processing and Speech Communication (SPSC); follow up Calulcations), and to extract experience data respectively help the {{\sisac{}}}-team by setting up a detailed description of technicalities hacking {{\sisac{}}} on the other hand.
   4.243 -
   4.244 -All the notions are in place to describe the task ``Interactive Course Material for Signal Processing based on Isabelle/{\sisac}'', the main task of this thesis, appropriately by the following points:
   4.245 -\begin{enumerate}
   4.246 -\item Analyze the problems given by the SPSC Lab for mathematics \textbf{knowledge required}, search the knowledge already available in Isabelle/{\sisac}, estimate efforts required to fill the gap between knowledge required and knowledge available, and finally select problems for implementation accordingly.
   4.247 -\item Implement the selected problems in Isabelle/{\sisac}, which means, in appropriate Isabelle theories \textbf{for each problem} implement:
   4.248 -  \begin{enumerate}
   4.249 -  \item \textbf{Definitions and theorems} required within the specification (including ``descriptions'' for input variables and output variables) and the program (proofs omitted via ``axiomaization'')
   4.250 -  \item \textbf{A specification} which describes the input variables, the preconditions on the input (a challenge for rigorously exact mathematics~!), the output variables and the postcondition, which relates input to output such that the problem is characterized formally (another challenge for rigorously exact mathematics~!)
   4.251 -  \item \textbf{A program} describing the algorithm which solves the problem, i.e. which constructs output meeting the postcondition. Programming involves identifying the steps (tactics~!) which create the calculation and calling CAS-functions (simplification, equation solvers, etc) appropriately. Modularization of programs into {\tt SubProblems} has to prepare for re-use of code.
   4.252 -  \end{enumerate}
   4.253 -\item Add \textbf{multimedia explanations} to each problem (i.e. to specific definitions, theorems, the specification and the program) such that non-expert students (e.g. within STEOP, the introductory orientation phase at TUG) get an idea the problem is about.
   4.254 -\item \textbf{Document the implementation} such that
   4.255 -  \begin{enumerate}
   4.256 -  \item Interactive course material hopefully useful in education within the SPSC and within STEOP, the introductory orientation phase at TUG, as a preview for students in Telematics on later application of math knowledge introduced in the first semester and
   4.257 -  \item A detailed description of technicalities in programming implemented as an interactive Isabelle/Isar theory, providing future programmers with guidelines and {\sisac}-developers with feedback in usability of the CTP-based program language. 
   4.258 -  \item subsequent application programmers have guidelines for further implementation of interactive course material in SPSC and other engineering sciences
   4.259 -  \item {\sisac{}} developers get feedback for ongoing improvement of the CTP-based programming language, the respective development environment and the respective program interpreter (called Lucas-Interpreter)
   4.260 -  \item development of knowledge for engineering sciences is being motivated in the Isabelle community.
   4.261 -  \end{enumerate}
   4.262 -\end{enumerate}
   4.263 -
   4.264 -
   4.265 -\section{Mechanization of Signal Processing Problems}\label{sp}
   4.266 -\subsection{Relevant Knowledge available in Isabelle}\label{know-isab}
   4.267 -Isabelle is developed now for a long time and so we are able to access a huge range of theories and usefull snipsets. The main problem according this snipsets is that isabelle still is a theorem proofer and not an algebra system. But due the work of the {\sisac}-development team there are already also many calculation examples provided.
   4.268 -\par The SPSC provided a list of problems which are often done wrong or are missunderstood by studentsin term of the problem classes. Out of these tasks we tried to extract the core operations and looked up which parts are already implemented or usefull. The provided problems are:
   4.269 -\begin{itemize}
   4.270 -\item Fourier-Transformation
   4.271 -\item Convolution
   4.272 -\item Inverse z-Transformation and partial fraction decomposition
   4.273 -\item Indextransformation
   4.274 -\end{itemize}
   4.275 -Following the collection and evaluation of core operations collated with isabelle:
   4.276 -
   4.277 -\paragraph{example FFT}, describe in detail !!!! 
   4.278 -
   4.279 -? different meaning: FFT in Maple
   4.280 -
   4.281 -gap between what is available and what is required (@)!
   4.282 -
   4.283 -traditional notation ?
   4.284 -
   4.285 -\subsection{Relevant Knowledge available in isac}\label{know-isac}
   4.286 -todo
   4.287 -
   4.288 -specifications (``application axis'') and methods (``algorithmic axis'')
   4.289 -
   4.290 -partial fractions, cancellation of multivariate rational terms, ...
   4.291 -
   4.292 -\subsection{Survey: Requiered Knowledge and Selected Problem(s)}\label{know-missing}
   4.293 -Following tables (Table~\ref{tab:eff-four},~\ref{tab:eff-conv},~\ref{tab:eff-ztrans}) are showing the expected development effort for speciefic problems. The values are only very inaccurately approximations of the real work, but needed as a basis for descieding with which problem to start:
   4.294 -
   4.295 -\begin{table}[h]
   4.296 -\begin{centering}
   4.297 -\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   4.298 -requirements            & comments             &effort\\ \hline\hline
   4.299 -solving Intrgrals		    & simple via propertie table     &     20\\
   4.300 -                        & \emph{real}          &    MT\\ \hline
   4.301 -transformation table    & simple transform     &    20\\ \hline
   4.302 -visualisation						& backend							 &    10\\ \hline
   4.303 -example collection      & with explanations    &    20\\ \hline\hline
   4.304 -\multicolumn{2}{c|}{}                      & 70-80\\
   4.305 -\end{tabular}
   4.306 -\par\end{centering}
   4.307 -\caption{Fourier-Transformation development effort\label{tab:eff-four}}
   4.308 -\end{table}
   4.309 -
   4.310 -\begin{table}[h]
   4.311 -\begin{centering}
   4.312 -\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   4.313 -requirements            & comments             &effort\\ \hline\hline
   4.314 -simplify rationals      & {\sisac}               &     0\\ \hline
   4.315 -define $\sum\limits_{i=0}^{n}i$ & partly {\sisac}  &    10\\ \hline
   4.316 -simplify sum			      & termorder            &    10\\
   4.317 -                        & simplify rules       &    20\\
   4.318 -                        & use simplify rationals&     0\\ \hline
   4.319 -index adjustments       & with unit step       &      10\\ \hline
   4.320 -example collection      & with explanations    &    20\\ \hline\hline
   4.321 -\multicolumn{2}{c|}{}                      & 70-90\\
   4.322 -\end{tabular}
   4.323 -\par\end{centering}
   4.324 -\caption{Convolution Operations development effort\label{tab:eff-conv}}
   4.325 -\end{table}
   4.326 -
   4.327 -\begin{table}[h]
   4.328 -\begin{centering}
   4.329 -\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   4.330 -requirements            & comments             &effort\\ \hline\hline
   4.331 -solve for part.fract.   & {\sisac}: degree 2     &     0\\
   4.332 -                        & complex nomminators  &    30\\
   4.333 -                        & degree > 2           &    MT\\ \hline
   4.334 -simplify polynomial     & {\sisac}               &     0\\
   4.335 -simplify rational       & {\sisac}               &     0\\ \hline
   4.336 -partial fraction        & degree 2,            &    20\\
   4.337 -decomposition           & specification, method&    30\\ \hline
   4.338 -${\cal Z}^{-1}$ table   & explanations, figures&    20\\ \hline
   4.339 -example collection      & with explanations    &    20\\ \hline\hline
   4.340 -\multicolumn{2}{c|}{}                      & 90-120\\
   4.341 -%                        &                      & 1 MT
   4.342 -\end{tabular}
   4.343 -\par\end{centering}
   4.344 -\caption{Z-Transformation development effort\label{tab:eff-ztrans}}
   4.345 -\end{table}
   4.346 -
   4.347 -As conclusion of the summerized efforts it is evident that only one topic can be tried to realized as a baccalaureate thesis. In accord with Dr. Neuper we decided after some practical tests to start with the implementation of the (Inverse) Z-Transformation. The Reason is that this topic can mostly be done with knowledge which was already tried to be mechanized in {\sisac}.
   4.348 -
   4.349 -\subsection{Formalization of missing knowledge in Isabelle}
   4.350 -
   4.351 -A problem behind is the mechanization of mathematic theories in CTP-bases languages. There is still a huge gap between these algoritms and this what we want as a solution - in Example Signal Processing. 
   4.352 -\begin{example}
   4.353 -	\[
   4.354 -		X\cdot(a+b)+Y\cdot(c+d)=aX+bX+cY+dY
   4.355 -  \]
   4.356 -	{\small\textit{
   4.357 -		\noindent A very simple example on this what we call gap is the simplification above. It is needles to say that it is correct and also isabell forfills it correct - \emph{always}. But sometimes we don't want expand such terms, sometimes we want another structure of them. Think of a problem were we now would need only the coefficients of $X$ and $Y$. This is what we call the gap between mechanical simplification and the solution.
   4.358 -	}}
   4.359 -	\caption{Correct but not usefull}\label{eg:gap}
   4.360 -\end{example}
   4.361 -Until we are not able to fill this gap we have to live with it but first have a look on the meaning of this statement:
   4.362 -\par Mechanized math starts from mathematical models and \emph{hopefully} proceeds to match physics. Academic engineering starts from physics (experimentation, measurement) and then proceeds to mathematical modelling and formalization. The process from a physical observance to a mathematical theory is unavoidable bound of setting up a big collection of standards, rules, definition but also exceptions. These are the things making mechanization that difficult.
   4.363 -\begin{example}
   4.364 -	\[
   4.365 -		m,\ kg,\ s,\ldots
   4.366 -  \]
   4.367 -	{\small\textit{
   4.368 -		\noindent Think about some units like that one's above. Behind each unit there is a discerning and very accurate definition: One Meter is the distance the light travels, in a vacuum, through the time of 1 / 299.792.458 second; one kilogramm is the weight of a platinum-iridium cylindar in paris; and so on. But are these definitions useable in a computer mechanized world?!
   4.369 -	}}
   4.370 -	\caption{Units in measurement}\label{eg:units}
   4.371 -\end{example}
   4.372 -\par A computer or a CTP-System builds on programms witth predefined logical ruels and does not know any mathematical trick (follow up example \ref{eg:trick}) or recipe to walk around difficult expressions. 
   4.373 -\begin{example}
   4.374 -\[ \frac{1}{j\omega}\cdot\left(e^{-j\omega}-e^{j3\omega}\right)= \]
   4.375 -\[ \frac{1}{j\omega}\cdot e^{-j2\omega}\cdot\left(e^{j\omega}-e^{-j\omega}\right)=
   4.376 -	 \frac{1}{\omega}\, e^{-j2\omega}\cdot\colorbox{lgray}{$\frac{1}{j}\,\left(e^{j\omega}-e^{-j\omega}\right)$}= \]
   4.377 -\[ \frac{1}{\omega}\, e^{-j2\omega}\cdot\colorbox{lgray}{$2\, sin(\omega)$} \]
   4.378 -	{\small\textit{
   4.379 -		\noindent Sometimes it is also usefull to be able to apply some \emph{tricks} to get a beautiful and particulary meaningful result, which we are able to interpret. But as seen in this example it can be hard to find out what operations have to be done to transform a result into a meaningful one.
   4.380 -	}}
   4.381 -	\caption{Mathematic tricks}\label{eg:trick}
   4.382 -\end{example}
   4.383 -For such a system the only possibility is to work through its known definitions and stops if none of these fits. Specified on Signal Processing or any other application it is often possible to walk through by doing simple creases. This creases are in generell based on simple math operatiopms but the challange is to teach the machine \emph{all}\footnote{Its pride to call it \emph{all}.} of them. Unfortunataly the goal of CTP Isabelle is to reach a high level of \emph{all} but it in real it will still be a survey of knowledge which links to other knowledge and {{\sisac{}}} a trainer and helper but no human compensating calulator. 
   4.384 -\par {{\sisac{}}} itselfs aims to adds an \emph{application} axis (formal specifications of problems outof topics from Signal Processing, etc.) and an \emph{algorithmic} axis to the \emph{deductive} axis of physical knowledge. The result is a three-dimensional universe of mathematics.
   4.385 -
   4.386 -
   4.387 -
   4.388 -todo
   4.389 -
   4.390 -axiomatization ... where ... and
   4.391 -
   4.392 -\subsection{Notes on Problems with Traditional Notation}
   4.393 -%{\footnotesize
   4.394 -%\textbf{TODO}
   4.395 -%Due the thesis work we discorvers severell problems of traditional notations.
   4.396 -%
   4.397 -%u[n] !!
   4.398 -%
   4.399 -%f x =  why not f(x) ?!?!
   4.400 -%
   4.401 -%...
   4.402 -%
   4.403 -%terms are not full simplified in traditional notations, in isac we have to simplify them complete to check weather results are compatible or not. in e.g. the solutions of an second order linear equation is an rational in isac but in tradition we keep fractions as long as possible and as long as they are 'beautiful' (1/8, 5/16,...)
   4.404 -%}\\
   4.405 -
   4.406 -The math which should be mechanized in Computer Theorem Provers (\emph{CTP}) has (almost) a problem with traditional notations (predicate calculus) for axioms, definitions, lemmas, theorems as a computer programm or script is not able to interpret every greek or latin letter and every greek, latin or whatever calculations symbol. Also if we would be able to handle thehse symbols we still have a problem to interpret them at all. (Follow up \hbox{Example \ref{eg:symbint1}})
   4.407 -
   4.408 -\begin{example}
   4.409 -	\[
   4.410 -		u\left[n\right] \ \ldots \ unitstep
   4.411 -	\]
   4.412 -	{\small\textit{
   4.413 -		\noindent The unitstep is something we need to solve Signal Processing problem classes. But in {{\sisac{}}} the 	rectangular breakets have a different meaning. So we abuse them for our requirements. We get something which is not defined, but useable. The Result is syntax only without semantic.
   4.414 -	}}
   4.415 -	\caption{Expression Interpretation}\label{eg:symbint1}
   4.416 -\end{example}
   4.417 -
   4.418 -\noindent In different problems, symbols and letters have different meanings and ask for different ways to get through. (Follow up \hbox{Example \ref{eg:symbint2}}) 
   4.419 -\begin{example}
   4.420 -	\[
   4.421 -		\widehat{\ }\ \widehat{\ }\ \widehat{\ } \  \ldots \  exponent
   4.422 -	\]
   4.423 -	{\small\textit{
   4.424 -	\noindent For using exponents the three widehat symbols are required. The reason for that is due the development of {{\sisac{}}} the single widehat and also the double were already in use for different operations.
   4.425 -	}}
   4.426 -	\caption{Symbol Interpretation}\label{eg:symbint2}
   4.427 -\end{example}
   4.428 -Exclusive from the input, also the output can be a problem. We are familar with a specified notations and style taught in university but a computer programm has no knowledge of the form probved by a professor and the maschines themselve also have not yet the possibilities to print every symbol (correct) Recent developments provide proofs in a humand readable format but according to the fact that there is no mony for good working formel editors yet, the style is one thing we have to live with.
   4.429 -
   4.430 -\section{Milestones for the Thesis}
   4.431 -The thesis was splitted into six iterations
   4.432 -\begin{description}
   4.433 -\item[(29.06. -- 27.07.)] Collection of detailed informations about different STEOP topics \ref{ssec:infcol}
   4.434 -\item[(27.07.)] First Prsentation - Decition on which Problems will be implemented \ref{ssec:pres1}
   4.435 -\item[(01.09. -- 11.11.)] Implementing the Problem Class in {{\sisac{}}} \ref{ssec:impl}
   4.436 -\item[(14.11. -- 02.12.)] Documentation of the Implementation \ref{ssec:doc}
   4.437 -\item[(05.12. -- todo)] Writting on the thesis \ref{ssec:thes}
   4.438 -\item[todo] Second Prsentation - Work review \ref{ssec:pres2}
   4.439 -\end{description}
   4.440 -
   4.441 -\section{Detailed Milestone Description}
   4.442 -\subsection{Collection of detailed informations about different STEOP topics}\label{ssec:infcol}
   4.443 -identify problems relevant for certain SP lectures
   4.444 -estimate chances to realized them within the scope of this thesis
   4.445 -order for implementing the problems negotiated with lecturers
   4.446 -\subsection{First Prsentation - Decition on which Problems will be implemented}\label{ssec:pres1}
   4.447 -\subsection{Implementing the Problem Class in {\sisac}}\label{ssec:impl}
   4.448 -\subsection{Documentation of the Implementation}\label{ssec:doc}
   4.449 -\subsection{Writting on the thesis}\label{ssec:thes}
   4.450 -\subsection{Second Prsentation - Work review}\label{ssec:pres2}
   4.451 -
   4.452 -\section{Related Work}\label{sec:related}
   4.453 -Unusual for a Baccalaureate Thesis, there is {\em no} related work; this requires explanation.
   4.454 -Of course, this thesis relies on front-of-the wave computer mathematics, on CTP. But {{\sisac{}}} uses CTP in a very specific way, which is too weakly related to other work: programming in the CTP-based language and rigorous formal specification of problems in Signal Processing where the main tasks in the practical part of this thesis. The major challenge for the practical work was given by the fact, that the work concerned alpha-testing of the CTP-based programming environment.
   4.455 -\par Another  area of work could be considered as related work: authoring of e-learning content. However, {{\sisac{}}} provides division of concern such that the practical part of this thesis could focus on computer mathematics; this work was not concerned with interaction (the CTP-based programming language has neither input statements nor output statements), nor with dialog guidance nor with any kind of learning theory.
   4.456 -\par These two reasons are given for the unusual statement, that there is no related work to be discussed in this thesis. 
   4.457 -
   4.458 -\section{Review}
   4.459 -todo
   4.460 -\section{Open Questions}
   4.461 -todo
   4.462 -\section{Conclusions}
   4.463 -todo
   4.464 -
   4.465 -%\bibliographystyle{alpha}
   4.466 -%\bibliography{references}
   4.467 -%\bibliography{bib/math-eng,bib/didact,bib/bk,bib/RISC_2,bib/isac,bib/pl,bib/math}
   4.468 -
   4.469 -
   4.470 -\clearpage
   4.471 -
   4.472 -%----------// PART 2 \\----------%
   4.473 -
   4.474 -\newevenside
   4.475 -
   4.476 -\part{Implementation}
   4.477 -
   4.478 -
   4.479 -\input{./preambleForGeneratedDocuments.tex}
   4.480 -
   4.481 -\HRule
   4.482 -
   4.483 -%\setcounter{section}{0}
   4.484 -\input{../../../test/Tools/isac/ADDTESTS/course/SignalProcess/document/Build_Inverse_Z_Transform}
   4.485 -
   4.486 -\clearpage
   4.487 -
   4.488 -
   4.489 -%----------// APPENDIX \\-----------%
   4.490 -
   4.491 -\appendix
   4.492 -
   4.493 -%----------// BIB \\-----------%
   4.494 -
   4.495 -%\renewcommand{\refname}{\section{Sources}} % Using "Sources" as the title of the section
   4.496 -\bibliographystyle{alpha}
   4.497 -\bibliography{references}
   4.498 -\clearpage
   4.499 -
   4.500 -%----------// WORK TIME \\-----------%
   4.501 -
   4.502 -\section{Stundenliste}
   4.503 -\begin{footnotesize}
   4.504 -\begin{longtable}[h]{l p{6.5cm} c c r}
   4.505 -{\bf Date} & {\bf Description} & {\bf Begin} & {\bf End} & {\bf Dur.}\\
   4.506 -\hline \hline
   4.507 -\endhead
   4.508 -29.06.2011 & Treffen mit Geiger und Neuper & 15:00 & 17:30 & 2,50\\ 
   4.509 -02.07.2011 & Beispielaufbereitung (Bsp. Geiger Mail) & 20:00 & 21:30 & 1,50\\ 
   4.510 -03.07.2011 & Beispielaufbereitung, Vorraussetzungsausw. & 21:00 & 22:45 & 1,75\\ 
   4.511 -05.07.2011 & Treffen mit Neuper, Informationsaustausch & 10:00 & 13:00 & 3,00\\ 
   4.512 -06.07.2011 & Isabelle Installation & 20:00 & 22:30 & 2,50\\ 
   4.513 -07.07.2011 & Treffen mit Neuper, Präsentationsvorbereitung & 14:45 & 16:15 & 1,50\\ 
   4.514 -18.07.2011 & Präsentationsvorbereitung - Struktur & 14:15 & 16:00 & 1,75\\ 
   4.515 -19.07.2011 & Präsentationsvorbereitung - Inhalt & 07:20 & 09:20 & 2,00\\ 
   4.516 -19.07.2011 & Treffen mit Neuper & 10:00 & 12:00 & 2,00\\ 
   4.517 -21.07.2011 & HG Fehlersuche, Latex Ausarbeitung & 11:10 & 14:00 & 2,83\\ 
   4.518 -22.07.2011 & Treffen mit Neuper & 10:00 & 12:00 & 2,00\\ 
   4.519 -23.07.2011 & Berechnungen in Latex fertigstellen & 13:45 & 16:30 & 2,75\\ 
   4.520 -24.07.2011 & Präsentation fertigstellen & 20:10 & 20:40 & 0,50\\ 
   4.521 -25.07.2011 & Treffen mit Neuper, Präsentation \& erste Tests & 15:15 & 17:55 & 2,67\\ 
   4.522 -26.07.2011 & Test\_Complex.thy erarbeiten & 10:45 & 12:10 & 1,42\\ 
   4.523 -27.07.2011 & present-1 mit Neuper, Geiger & 10:00 & 12:00 & 2,00\\
   4.524 -\hline 
   4.525 -02.09.2011 & Treffen mit Neuper, Vorlage Bakk-Arbeit & 08:30 & 10:20 & 1,83\\ 
   4.526 -05.09.2011 & Treffen mit Neuper, Beginn Partialbruchzerlegung & 09:30 & 12:45 & 3,25\\ 
   4.527 -05.09.2011 & Partialbruchzerlegung & 17:10 & 18:30 & 1,33\\ 
   4.528 -06.09.2011 & Dokumentation Partialbruchzerlegung & 10:00 & 13:15 & 3,25\\ 
   4.529 -07.09.2011 & Treffen mit Neuper, Einführung Programmierung & 10:00 & 12:50 & 2,83\\ 
   4.530 -08.09.2011 & Latex Umgebung einrichten - Theory export & 19:00 & 22:45 & 3,75\\ 
   4.531 -09.09.2011 & Latex Umgebung einrichten - Makefile & 11:40 & 15:00 & 3,33\\ 
   4.532 -10.09.2011 & Treffen mit Neuper, HG Fehler, Skript Inv.-Z-Transf. & 10:00 & 12:00 & 2,00\\ 
   4.533 -14.09.2011 & Skript Inv.-Z-Transf Prgrammierung & 09:10 & 12:25 & 3,25\\ 
   4.534 -16.09.2011 & Informationssammlung Summen & 13:15 & 16:00 & 2,75\\ 
   4.535 -19.09.2011 & Programmierübung & 10:00 & 13:10 & 3,17\\ 
   4.536 -20.09.2011 & Trefffen mit Neuper, Unterstützung bei Program. & 15:30 & 18:10 & 2,67\\ 
   4.537 -23.09.2011 & Neukonfiguration IsaMakefile & 13:00 & 14:30 & 1,50\\ 
   4.538 -23.09.2011 & Treffen Neuper, Programmierung Build\_Inverse\_Z & 14:30 & 17:30 & 3,00\\ 
   4.539 -26.09.2011 & Skript Partialbruchzerlegung - getArgument & 13:30 & 16:15 & 2,75\\ 
   4.540 -27.09.2011 & Treffen mit Neuper, HG Fehler & 09:00 & 12:20 & 3,33\\ 
   4.541 -28.09.2011 & Treffen mit Neuper, Dateiumstrukturierung & 10:00 & 12:30 & 2,50\\ 
   4.542 -01.10.2011 & Testen & 10:00 & 11:00 & 1,00\\ 
   4.543 -02.10.2011 & Fehlersuche & 15:00 & 16:10 & 1,17\\ 
   4.544 -06.10.2011 & Treffen mit Neuper & 15:00 & 17:50 & 2,83\\ 
   4.545 -07.10.2011 & Treffen mit Neuper, Programmbesprechung & 15:00 & 16:50 & 1,83\\ 
   4.546 -09.10.2011 & Bakk. Arbeit & 16:30 & 18:45 & 2,25\\ 
   4.547 -11.10.2011 & Treffen mit Neuper, Programmbespr., Abstract & 14:10 & 17:10 & 3,00
   4.548 -\end{longtable}
   4.549 -\end{footnotesize}
   4.550 -
   4.551 -\section{Calculations\label{app:calc}}
   4.552 -\input{calulations}
   4.553 -\end{document}
   4.554 -
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/doc-src/isac/jrocnik/jrocnik_bakk.tex	Mon Mar 05 10:15:34 2012 +0100
     5.3 @@ -0,0 +1,551 @@
     5.4 +%   Title:  bakkarbeit_jrocnik.tex
     5.5 +%   Author: Jan Rocnik
     5.6 +%   (c) copyright due to lincense terms.
     5.7 +%2345678901234567890123456789012345678901234567890123456789012345678901234567890
     5.8 +%       10        20        30        40        50        60        70        80
     5.9 +
    5.10 +%define document class
    5.11 +\documentclass[a4paper, 12pt]{article}
    5.12 +
    5.13 +%packages for language and input
    5.14 +\usepackage[english]{babel} 
    5.15 +\usepackage[T1]{fontenc}
    5.16 +\usepackage[latin1]{inputenc}
    5.17 +
    5.18 +%generel packages
    5.19 +\usepackage{url}
    5.20 +\usepackage{endnotes}
    5.21 +\usepackage{trfsigns}
    5.22 +\usepackage{setspace}
    5.23 +\usepackage[pdfpagelabels]{hyperref}
    5.24 +\usepackage{longtable}
    5.25 +
    5.26 +\usepackage{float} %For restylefloat
    5.27 +\newfloat{example}{h}{} %self made floats
    5.28 +\floatname{example}{Example} %name for float
    5.29 +\restylefloat{table} %float tables
    5.30 +\floatstyle{ruled} %boxes around floats
    5.31 +\restylefloat{example} %float examples --> boxes
    5.32 +
    5.33 +%colors and graphics
    5.34 +\usepackage{graphicx}
    5.35 +\usepackage{color}
    5.36 +\definecolor{lgray}{RGB}{238,238,238}
    5.37 +
    5.38 +%isabelle relevant packages
    5.39 +\usepackage{isabelle,isabellesym}
    5.40 +
    5.41 +%define isac logos
    5.42 +\def\isac{${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
    5.43 +\def\sisac{\footnotesize${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
    5.44 +
    5.45 +\newcommand{\HRule}{\rule{\linewidth}{0.2mm}}
    5.46 +
    5.47 +%start new even page
    5.48 +\usepackage{ifthen}
    5.49 +\newcommand{\newevenside}{
    5.50 +        \ifthenelse{\isodd{\thepage}}{\newpage}{
    5.51 +        \newpage
    5.52 +        \phantom{placeholder} % doesn't appear on page
    5.53 +        \thispagestyle{empty} % if want no header/footer
    5.54 +        \newpage
    5.55 +        }
    5.56 +}
    5.57 +
    5.58 +%----------// BEGIN DOCUMENT \\----------%
    5.59 +
    5.60 +\begin{document}
    5.61 +
    5.62 +%----------// TITLE PAGE \\----------%1
    5.63 +
    5.64 +\input{./bakkarbeit_titlepage.tex}
    5.65 +\newpage
    5.66 +
    5.67 +%----------// EMPTY PAGE \\----------%2
    5.68 +
    5.69 +\setcounter{page}{2}
    5.70 +\thispagestyle{empty}\mbox{}\newpage
    5.71 +
    5.72 +%----------// THANKS \\----------%3
    5.73 +
    5.74 +\setcounter{page}{3}
    5.75 +\begin{center}
    5.76 +	Special Thanks to\\
    5.77 +	\hfill \\
    5.78 +	\emph{Dr.techn. Walther Neuper}\\
    5.79 +	\emph{Dipl.-Ing. Bernhard Geiger}
    5.80 +\end{center}
    5.81 +\thispagestyle{empty}
    5.82 +\newpage
    5.83 +
    5.84 +%----------// EMPTY PAGE \\----------%4
    5.85 +
    5.86 +%the following command was replaced by \newevenside
    5.87 +%\thispagestyle{empty}\mbox{}\newpage
    5.88 +
    5.89 +%----------// ABSTRACT \\----------%5
    5.90 +
    5.91 +\newevenside
    5.92 +\begin{abstract}
    5.93 +The Baccalaureate Thesis creates interactive course material for Signal Processing (SP) based on the experimental educational math assistant Isabelle/{\sisac} ({\em Isa}belle for Transparent {\em C}alculations in Applied Mathematics).
    5.94 +\par The content of the course material is defined together with the Signal Processing and Speech Communication Laboratory (SPSC Lab) of Graz University of Technology (TUG). The content is planned to be used in specific lectures and labs of the SPSC and thus is thoroughly concerned with underlying mathematical and physical theory.
    5.95 +One challenge of this thesis is, that much theory required for SPSC is not yet mechanized in Computer Theorem Provers (CTP); so this thesis will provide preliminary definitions  and theorems (without proofs~!) implemented in Isabelle \emph{theories}.
    5.96 +\par Another challenge is the implementation of interactive courses: this is done within the educational math assistant Isabelle/{\sisac}, which is under development at TU Graz. The present state of {\sisac{}} happens to provide the {\em first} occasion for authoring by a non-member of the {\sisac}-developer team. So this challenge involves  alpha-testing of the underlying \emph{CTP-based programming language}, because error messages are still not user-friendly and need frequent contact with {\sisac}-developers.
    5.97 +So the practical outcome of this thesis is twofold:
    5.98 +\begin{enumerate}
    5.99 +\item Interactive course material hopefully useful in education within the SPSC Lab and within STEOP, the introductory orientation phase at TUG, as a preview for students in Telematics on later application of math knowledge introduced in the first semester and
   5.100 +\item A detailed description of technicalities in programming implemented as an interactive Isabelle/Isar theory, providing future programmers with guidelines and {\sisac}-developers with feedback in usability of the CTP-based program language. 
   5.101 +\end{enumerate}
   5.102 +\end{abstract}
   5.103 +\clearpage
   5.104 +
   5.105 +%----------// EMPTY PAGE \\----------%6
   5.106 +
   5.107 +%the following command was replaced by \newevenside
   5.108 +%\thispagestyle{empty}\mbox{}\newpage
   5.109 +
   5.110 +%----------// T O C \\----------%7
   5.111 +
   5.112 +\newevenside
   5.113 +
   5.114 +\pagenumbering{Roman}
   5.115 +%This thesis is structured into a fundamental part introducing the motivation, the basic notions concerning the thesis aswell as the {\sisac{}} project and describing the mathematic base. Further a automatically generated practical part representing the work on {\sisac{}} which can be extended.
   5.116 +\tableofcontents
   5.117 +\clearpage
   5.118 +\pagenumbering{arabic}
   5.119 +\setcounter{page}{8}
   5.120 +
   5.121 +%----------// PART-1 \\----------%
   5.122 +
   5.123 +\newevenside
   5.124 +
   5.125 +\part{Project Fundamentals}
   5.126 +
   5.127 +\section{Introduction}
   5.128 +Didactics of mathematics faces a specific issue, a gap between (1) introduction of math concepts and skills and (2) application of these concepts and skills, which ususally are separated into different units in curricula (for good reasons). For instance, (1) teaching partial fraction decomposition is separated from (2) application for inverse Z-transform in signal processing.
   5.129 +
   5.130 +This gap is an obstacle for applying math as an foundamental thinking technology in engineering: In (1) motivation is lacking because the question ``What is this stuff good for~?'' cannot be treated sufficiently, and in (2) the ``stuff'' is not available to students in higher semesters as widespread experience shows.
   5.131 +
   5.132 +\medskip
   5.133 +Motivated by this didactical issue on the one hand, and ongoing R\&D on a novel kind of educational mathematics assistant at Graz University of Technology~\footnote{http://www.ist.tugraz.at/isac/} promising to cope with this issue on the other hand, several institutes are planning to join their expertise: the Institutes for Institute for Information Systems and Computer Media (IICM), the Institute for Software Technology (IST), the Institutes for Mathematics, the Signal Processing and Speech Communication Institute (SPSC), the Institute for Structural Analysis and the Institute of Electrical Measurement and Measurement Signal Processing.
   5.134 +\par This thesis is the first attempt to tackle the above mentioned issue, it focuses on Telematics, because these specific studies focus on mathematics in STEOP, the introductory orientation phase. STEOP is considered an opportunity to investigate the impact of {\sisac}'s prototype on the issue and others.
   5.135 +
   5.136 +\medskip
   5.137 +The thesis is structured as follows: Part I concerns theory, part II the implementation work, where the latter is the main part.
   5.138 +\par In part I, Section~\ref{isabisac} gives a brief description of the state-of-the-art for educational math assistants (Section~\ref{emas}) and introduces the notions required for the implementation work (Section~\ref{math-auth}). In particular, Section~\ref{user-guid} explains, why math authoring in {\sisac{}} is {\em not} concerned with interaction (and thus not with user guidance etc at all~!). So a concise description of the thesis' goals needs to be postponed to Section~\ref{sec:goals}.
   5.139 +\par Section~\ref{sp} analyzes a problems defined by the SPSC for the knowledge already provided (Section~\ref{know-isab}, Section~\ref{know-isac}), discusses the selection of problems for implementation (Section~\ref{know-missing}) TODO: further structure ?
   5.140 +%(\S\ref{})
   5.141 +
   5.142 +\section{Mechanization of Math in Isabelle/{\isac}}\label{isabisac}
   5.143 +
   5.144 +%\subsubsection*{Notes on Mechanization of Mathematics}
   5.145 +%This thesis tries to \emph{connect} these two worlds and is one of the first guidelines to implement problem classes in {\sisac}. As we are still in a eary part of development, this is the first thesis dealing within this topic and there is \emph{no} related work to guid through. A more detailed description about this fact can be found in Section \ref{sec:related}.
   5.146 +%The major challenge of the practical part, of this thesis, is, that "connecting the two worlds" involves programming in a CTP-based programming language which is in a very early state of prototyping. There is no concrete experience data ready to grep.
   5.147 +%
   5.148 +As mentioned in the introduction, a prototype of an educational math assistant called {\sisac}\footnote{{\sisac}=\textbf{Isa}belle \cite{Nipkow-Paulson-Wenzel:2002} for \textbf{C}alculations, see http://www.ist.tugraz.at/isac/.} bridges the gap between (1) introducation and (2) application of mathematics: {\sisac} is based on Computer Theorem Proving (CTP), a technology which requires each fact and each action justified by formal logic, so {{\sisac{}}} makes justifications transparent to students in interactive step-wise problem solving. By that way {\sisac} already can serve both:
   5.149 +\begin{enumerate}
   5.150 +\item Introduction of math stuff (in e.g. partial fraction decomposition) by stepwise explaining and exercising respective symbolic calculations with ``next step guidance (NSG)'' and rigorously checking steps freely input by students  --- this also in context with advanced applications (where the stuff to be taught in higher semesters can be skimmed through by NSG), and
   5.151 +\item Application of math stuff in advanced engineering courses (e.g. problems to be solved by inverse Z-transform in a Signal Processing Lab) --- and now without much ado about basic math techniques (like partical fraction decomposition): ``next step guidance'' supports students in independenly (re-)adopting such techniques.
   5.152 +\end{enumerate}
   5.153 +Before the question is answers, how {\sisac} accoplishes this task from a technical point of view, some remarks on the state-of-the-art is given, therefor follow up Section~\ref{emas}.
   5.154 +
   5.155 +\subsection{Educational Mathematics Assistants (EMAs)}\label{emas}
   5.156 +Educational software in mathematics is, if at all, based on Computer Algebra Systems (CAS, for instance \cite{progr-mathematica,prog-maple06}), Dynamic Geometry Systems (DGS, for instance \footnote{GeoGebra http://www.geogebra.org, Cinderella http://www.cinderella.de/, GCLC http://poincare.matf.bg.ac.rs/~janicic/gclc/}) or spread-sheets. These base technologies are used to program math lessons and sometimes even exercises. The latter are cumbersome: the steps towards a solution of such an interactive exercise need to be provided with feedback, where at each step a wide variety of possible input has to be foreseen by the programmer --- so such interactive exercises either require high development efforts or the exercises constrain possible inputs.
   5.157 +
   5.158 +A new generation of educational math assistants (EMAs) is emerging presently, which is based on Computer Theorem Proving (CTP). CTP, for instance Isabelle \cite{Nipkow-Paulson-Wenzel:2002} and Coq \cite{Huet_all:94}, is a technology which requires each fact and each action justified by formal logic. Pushed by demands for \textit{proven} correctness of safety-critical software CTP advances into software engineering; from these advancements computer mathematics benefits in general, and math education in particular. Two features of CTP are immediately beneficial for learning:
   5.159 +
   5.160 +\paragraph{CTP have knowledge in human readable format,} that is in standard predicate calculus. CTP following the LCF-tradition have that knowledge down to the basic definitions of set, equality, etc~\footnote{http://isabelle.in.tum.de/dist/library/HOL/HOL.html}; following the typical deductive development of math, natural numbers are defined and their properties proven~\footnote{http://isabelle.in.tum.de/dist/library/HOL/Number\_Theory/Primes.html}, etc. Present knowledge mechanized in CTP exceeds high-school mathematics by far, however by knowledge required in software technology, and not in other engineering sciences.
   5.161 +
   5.162 +\paragraph{CTP can model the whole problem solving process} in mathematical problem solving {\em within} a coherent logical framework. This is already being done by three projects, by Ralph-Johan Back \cite{Back-SD09}, by ActiveMath \cite{ActiveMath-MAIN11} and by Carnegie Mellon Tutor \cite{mat-tutor-cmu-MAIN11}.
   5.163 +
   5.164 +Having the whole problem solving process within a logical coherent system, such a design guarantees correctness of intermediate steps and of the result (which seems essential for math software); and the second advantage is that CTP provides a wealth of theories which can be exploited for mechanizing other features essential for educational software.
   5.165 +
   5.166 +\subsection{Generation of User Guidance in EMAs}\label{user-guid}
   5.167 +One essential feature for educational software is feedback to user input and assistance in coming to a solution.
   5.168 +
   5.169 +\paragraph{Checking user input} by ATP during stepwise problem solving is being accomplished by the three projects mentioned above \cite{Back-SD09,ActiveMath-MAIN11,mat-tutor-cmu-MAIN11} exclusively. They model the whole problem solving process as mentioned above, so all what happens between formalized assumptions (or formal specification) and goal (or fulfilled postcondition) can be mechanized. Such mechanization promises to greatly extend the scope of educational software in stepwise problem solving.
   5.170 +
   5.171 +\paragraph{Next step guidance (NSG)} comprises the system's ability to propose a next step; this is a challenge for CTP: either a radical restriction of the search space by restriction to very specific problem classes is required, or much care and effort is required in designing possible variants in the process of problem solving \cite{proof-strategies-11}.
   5.172 +
   5.173 +Another approach is restricted to problem solving in engineering domains, where a problem is specified by input, precondition, output and postcondition, and where the postcondition is proven by ATP behind the scenes \cite{wn:lucas-interp-12}: Here the possible variants in the process of problem solving are provided with feedback {\em automatically}, if the problem is described in a CTP-based programming language~\cite{plmms10}: the programmer only describes the math algorithm without caring about interaction (the respective program is functional and even has no in/output statements~!); interaction is generated as a side-effect by the interpreter --- an efficient separation of concern between math programmers and dialog designers promising application all over engineering disciplines.
   5.174 +
   5.175 +
   5.176 +\subsection{Math Authoring in Isabelle/\isac}\label{math-auth}
   5.177 +Authoring new mathematics knowledge in {\sisac} can be compared with ``application programming'' of engineering problems; most of such programming uses CAS-based programming languages (CAS = Computer Algebra Systems; e.g. Mathematica's \cite{progr-mathematica} or Maple's programming language \cite{prog-maple06}).
   5.178 +
   5.179 +{\sisac}, however, uses a novel type of CTP-based language \cite{plmms10} for describing how to constuct a solution to an engineering problem and for calling equation solvers, integration, etc~\footnote{Implementation of CAS-like functionality in CTP is not primarily concerned with efficiency, but with a didactic question: What to decide for: for high-brow algorithms at the state-of-the-art or for elementary algorithms comprehensible for students~?} within CTP; CTP can ensure ``systems that never make a mistake'' \cite{casproto} --- are impossible for CAS which have no logics underlying.
   5.180 +
   5.181 +With writing such CTP-based programs authoring is perfect, the application programmer is not concerned with interaction or with user guidance: this is concern of a novel kind of program interpreter called Lucas-Interpreter \cite{wn:lucas-interp-12}. This interpreter hands over control to a dialog component at each step of calculation (like a debugger at breakpoints) and calls automated CTP to check user input following personalized strategies according to a feedback module.
   5.182 +
   5.183 +\medskip
   5.184 +However ``application programming with CTP'' is not done with writing a program: according to the principles of CTP, each step must be justified. Such justifications are given by theorems. So all steps must be related to some theorem, if there is no such theorem it must be added to the existing knowledge, which is organized in so-called \textbf{theories} in  Isabelle. A theorem must be proven; fortunately Isabelle comprises a mechanism (called ``axiomatization''), which allows to omit proofs. Such a theorem is shown in Example~\ref{eg:neuper1}. %TODO: take your example !
   5.185 +
   5.186 +\begin{example}
   5.187 +{\small\begin{tabbing}
   5.188 +123\=123\=123\=123\=\kill
   5.189 +\hfill \\
   5.190 +\>axiomatization where \\
   5.191 +\>\>  rule1: "1 = $\delta$ [n]" and\\
   5.192 +\>\>  rule2: "|| z || > 1 ==> z / (z - 1) = u [n]" and\\
   5.193 +\>\>  rule3: "|| z || < 1 ==> z / (z - 1) = -u [-n - 1]" and \\
   5.194 +\>\>  rule4: "|| z || > || $\alpha$ || ==> z / (z - $\alpha$) = $\alpha^n$ * u [n]" and\\
   5.195 +\>\>  rule5: "|| z || < || $\alpha$ || ==> z / (z - $\alpha$) = -($\alpha^n$) * u [-n - 1]" and\\
   5.196 +\>\>  rule6: "|| z || > 1 ==> z/(z - 1)$^2$ = n $\cdot$ u [n]"
   5.197 +\end{tabbing}
   5.198 +}
   5.199 +\caption{Axiomatization in Isabelle\label{eg:neuper1}}
   5.200 +\end{example}
   5.201 +
   5.202 +In order to provide CTP with logical facts for checking user input, the Lucas-Interpreter requires a \textbf{specification}. Such a specification is shown in Example~ref{eg:neuper2}.
   5.203 +
   5.204 +\begin{example}
   5.205 +{\small\begin{tabbing}
   5.206 +123,\=postcond \=: \= $\forall \,A^\prime\, u^\prime \,v^\prime.\,$\=\kill
   5.207 +\hfill \\
   5.208 +Specification no.1:\\
   5.209 +%\>input\>: $\{\;r={\it arbitraryFix}\;\}$  \\
   5.210 +\>input    \>: $\{\;r\;\}$  \\
   5.211 +\>precond  \>: $0 < r$   \\
   5.212 +\>output   \>: $\{\;A,\; u,v\;\}$ \\
   5.213 +\>postcond \>:{\small  $\;A=2uv-u^2 \;\land\; (\frac{u}{2})^2+(\frac{v}{2})^2=r^2 \;\land$}\\
   5.214 +\>     \>\>{\small $\;\forall \;A^\prime\; u^\prime \;v^\prime.\;(A^\prime=2u^\prime v^\prime-(u^\prime)^2 \land
   5.215 +(\frac{u^\prime}{2})^2+(\frac{v^\prime}{2})^2=r^2) \Longrightarrow A^\prime \leq A$} \\
   5.216 +\>props\>: $\{\;A=2uv-u^2,\;(\frac{u}{2})^2+(\frac{v}{2})^2=r^2\;\}$
   5.217 +\end{tabbing}
   5.218 +}
   5.219 +\caption{Specification for the Lucas-Interpreter\label{eg:neuper2}}
   5.220 +\end{example}
   5.221 +
   5.222 +Such a specification is checked before the execution of a program is started, the same applies for sub-programs. In the following example program (Example~\ref{eg:subprob}) the sub-programs are designated by \ttfamily SubProblem \normalfont:
   5.223 +
   5.224 +\begin{example}
   5.225 +\hfill \\
   5.226 +{\ttfamily \begin{tabbing}
   5.227 +``(L\_L::bool list) = (\=SubProblem (\=Test','' \\
   5.228 +``\>\>[linear,univariate,equation,test],'' \\
   5.229 +``\>\>[Test,solve\_linear])'' \\
   5.230 +``\>[BOOL equ, REAL z])'' \\
   5.231 +\end{tabbing}
   5.232 +}
   5.233 +{\small\textit{
   5.234 +	\noindent If a programm requires a result which has to be calculated first we can use a subproblem to do so. In our specific case we wanted to calculate the zeros of a fraction and used a subproblem to calculate the zeros of the denominator polynom.
   5.235 +	}}
   5.236 +\caption{Ussage of Subproblems in Programms\label{eg:subprob}}
   5.237 +\end{example}
   5.238 +
   5.239 +
   5.240 +\subsection{Goals of the Thesis}\label{sec:goals}
   5.241 +Imagine a piece of software would be able to support you by understanding every problem class, upcoming in the first years attending university - wouldn't it be great?
   5.242 +\par {{\sisac{}}} tries to do that, but the current state of the art is miles away from this goal and a single implementation of a problem is not enough to cahnge this circumstamce. Through this fact it is all the more essential to try, test, research and document the implementation of problem classes from "`real world"' applications. Responding to the abstract at the begin of this document the thesis has two folds; on the one hand certainly to provide interactiv course material for Signal Processing (which means to implement a single problem provided by the Institute of Signal Processing and Speech Communication (SPSC); follow up Calulcations), and to extract experience data respectively help the {{\sisac{}}}-team by setting up a detailed description of technicalities hacking {{\sisac{}}} on the other hand.
   5.243 +
   5.244 +All the notions are in place to describe the task ``Interactive Course Material for Signal Processing based on Isabelle/{\sisac}'', the main task of this thesis, appropriately by the following points:
   5.245 +\begin{enumerate}
   5.246 +\item Analyze the problems given by the SPSC Lab for mathematics \textbf{knowledge required}, search the knowledge already available in Isabelle/{\sisac}, estimate efforts required to fill the gap between knowledge required and knowledge available, and finally select problems for implementation accordingly.
   5.247 +\item Implement the selected problems in Isabelle/{\sisac}, which means, in appropriate Isabelle theories \textbf{for each problem} implement:
   5.248 +  \begin{enumerate}
   5.249 +  \item \textbf{Definitions and theorems} required within the specification (including ``descriptions'' for input variables and output variables) and the program (proofs omitted via ``axiomaization'')
   5.250 +  \item \textbf{A specification} which describes the input variables, the preconditions on the input (a challenge for rigorously exact mathematics~!), the output variables and the postcondition, which relates input to output such that the problem is characterized formally (another challenge for rigorously exact mathematics~!)
   5.251 +  \item \textbf{A program} describing the algorithm which solves the problem, i.e. which constructs output meeting the postcondition. Programming involves identifying the steps (tactics~!) which create the calculation and calling CAS-functions (simplification, equation solvers, etc) appropriately. Modularization of programs into {\tt SubProblems} has to prepare for re-use of code.
   5.252 +  \end{enumerate}
   5.253 +\item Add \textbf{multimedia explanations} to each problem (i.e. to specific definitions, theorems, the specification and the program) such that non-expert students (e.g. within STEOP, the introductory orientation phase at TUG) get an idea the problem is about.
   5.254 +\item \textbf{Document the implementation} such that
   5.255 +  \begin{enumerate}
   5.256 +  \item Interactive course material hopefully useful in education within the SPSC and within STEOP, the introductory orientation phase at TUG, as a preview for students in Telematics on later application of math knowledge introduced in the first semester and
   5.257 +  \item A detailed description of technicalities in programming implemented as an interactive Isabelle/Isar theory, providing future programmers with guidelines and {\sisac}-developers with feedback in usability of the CTP-based program language. 
   5.258 +  \item subsequent application programmers have guidelines for further implementation of interactive course material in SPSC and other engineering sciences
   5.259 +  \item {\sisac{}} developers get feedback for ongoing improvement of the CTP-based programming language, the respective development environment and the respective program interpreter (called Lucas-Interpreter)
   5.260 +  \item development of knowledge for engineering sciences is being motivated in the Isabelle community.
   5.261 +  \end{enumerate}
   5.262 +\end{enumerate}
   5.263 +
   5.264 +
   5.265 +\section{Mechanization of Signal Processing Problems}\label{sp}
   5.266 +\subsection{Relevant Knowledge available in Isabelle}\label{know-isab}
   5.267 +Isabelle is developed now for a long time and so we are able to access a huge range of theories and usefull snipsets. The main problem according this snipsets is that isabelle still is a theorem proofer and not an algebra system. But due the work of the {\sisac}-development team there are already also many calculation examples provided.
   5.268 +\par The SPSC provided a list of problems which are often done wrong or are missunderstood by studentsin term of the problem classes. Out of these tasks we tried to extract the core operations and looked up which parts are already implemented or usefull. The provided problems are:
   5.269 +\begin{itemize}
   5.270 +\item Fourier-Transformation
   5.271 +\item Convolution
   5.272 +\item Inverse z-Transformation and partial fraction decomposition
   5.273 +\item Indextransformation
   5.274 +\end{itemize}
   5.275 +Following the collection and evaluation of core operations collated with isabelle:
   5.276 +
   5.277 +\paragraph{example FFT}, describe in detail !!!! 
   5.278 +
   5.279 +? different meaning: FFT in Maple
   5.280 +
   5.281 +gap between what is available and what is required (@)!
   5.282 +
   5.283 +traditional notation ?
   5.284 +
   5.285 +\subsection{Relevant Knowledge available in isac}\label{know-isac}
   5.286 +todo
   5.287 +
   5.288 +specifications (``application axis'') and methods (``algorithmic axis'')
   5.289 +
   5.290 +partial fractions, cancellation of multivariate rational terms, ...
   5.291 +
   5.292 +\subsection{Survey: Requiered Knowledge and Selected Problem(s)}\label{know-missing}
   5.293 +Following tables (Table~\ref{tab:eff-four},~\ref{tab:eff-conv},~\ref{tab:eff-ztrans}) are showing the expected development effort for speciefic problems. The values are only very inaccurately approximations of the real work, but needed as a basis for descieding with which problem to start:
   5.294 +
   5.295 +\begin{table}[h]
   5.296 +\begin{centering}
   5.297 +\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   5.298 +requirements            & comments             &effort\\ \hline\hline
   5.299 +solving Intrgrals		    & simple via propertie table     &     20\\
   5.300 +                        & \emph{real}          &    MT\\ \hline
   5.301 +transformation table    & simple transform     &    20\\ \hline
   5.302 +visualisation						& backend							 &    10\\ \hline
   5.303 +example collection      & with explanations    &    20\\ \hline\hline
   5.304 +\multicolumn{2}{c|}{}                      & 70-80\\
   5.305 +\end{tabular}
   5.306 +\par\end{centering}
   5.307 +\caption{Fourier-Transformation development effort\label{tab:eff-four}}
   5.308 +\end{table}
   5.309 +
   5.310 +\begin{table}[h]
   5.311 +\begin{centering}
   5.312 +\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   5.313 +requirements            & comments             &effort\\ \hline\hline
   5.314 +simplify rationals      & {\sisac}               &     0\\ \hline
   5.315 +define $\sum\limits_{i=0}^{n}i$ & partly {\sisac}  &    10\\ \hline
   5.316 +simplify sum			      & termorder            &    10\\
   5.317 +                        & simplify rules       &    20\\
   5.318 +                        & use simplify rationals&     0\\ \hline
   5.319 +index adjustments       & with unit step       &      10\\ \hline
   5.320 +example collection      & with explanations    &    20\\ \hline\hline
   5.321 +\multicolumn{2}{c|}{}                      & 70-90\\
   5.322 +\end{tabular}
   5.323 +\par\end{centering}
   5.324 +\caption{Convolution Operations development effort\label{tab:eff-conv}}
   5.325 +\end{table}
   5.326 +
   5.327 +\begin{table}[h]
   5.328 +\begin{centering}
   5.329 +\begin{tabular}{p{4cm}|p{5cm}|rp{2.5cm}}
   5.330 +requirements            & comments             &effort\\ \hline\hline
   5.331 +solve for part.fract.   & {\sisac}: degree 2     &     0\\
   5.332 +                        & complex nomminators  &    30\\
   5.333 +                        & degree > 2           &    MT\\ \hline
   5.334 +simplify polynomial     & {\sisac}               &     0\\
   5.335 +simplify rational       & {\sisac}               &     0\\ \hline
   5.336 +partial fraction        & degree 2,            &    20\\
   5.337 +decomposition           & specification, method&    30\\ \hline
   5.338 +${\cal Z}^{-1}$ table   & explanations, figures&    20\\ \hline
   5.339 +example collection      & with explanations    &    20\\ \hline\hline
   5.340 +\multicolumn{2}{c|}{}                      & 90-120\\
   5.341 +%                        &                      & 1 MT
   5.342 +\end{tabular}
   5.343 +\par\end{centering}
   5.344 +\caption{Z-Transformation development effort\label{tab:eff-ztrans}}
   5.345 +\end{table}
   5.346 +
   5.347 +As conclusion of the summerized efforts it is evident that only one topic can be tried to realized as a baccalaureate thesis. In accord with Dr. Neuper we decided after some practical tests to start with the implementation of the (Inverse) Z-Transformation. The Reason is that this topic can mostly be done with knowledge which was already tried to be mechanized in {\sisac}.
   5.348 +
   5.349 +\subsection{Formalization of missing knowledge in Isabelle}
   5.350 +
   5.351 +A problem behind is the mechanization of mathematic theories in CTP-bases languages. There is still a huge gap between these algoritms and this what we want as a solution - in Example Signal Processing. 
   5.352 +\begin{example}
   5.353 +	\[
   5.354 +		X\cdot(a+b)+Y\cdot(c+d)=aX+bX+cY+dY
   5.355 +  \]
   5.356 +	{\small\textit{
   5.357 +		\noindent A very simple example on this what we call gap is the simplification above. It is needles to say that it is correct and also isabell forfills it correct - \emph{always}. But sometimes we don't want expand such terms, sometimes we want another structure of them. Think of a problem were we now would need only the coefficients of $X$ and $Y$. This is what we call the gap between mechanical simplification and the solution.
   5.358 +	}}
   5.359 +	\caption{Correct but not usefull}\label{eg:gap}
   5.360 +\end{example}
   5.361 +Until we are not able to fill this gap we have to live with it but first have a look on the meaning of this statement:
   5.362 +\par Mechanized math starts from mathematical models and \emph{hopefully} proceeds to match physics. Academic engineering starts from physics (experimentation, measurement) and then proceeds to mathematical modelling and formalization. The process from a physical observance to a mathematical theory is unavoidable bound of setting up a big collection of standards, rules, definition but also exceptions. These are the things making mechanization that difficult.
   5.363 +\begin{example}
   5.364 +	\[
   5.365 +		m,\ kg,\ s,\ldots
   5.366 +  \]
   5.367 +	{\small\textit{
   5.368 +		\noindent Think about some units like that one's above. Behind each unit there is a discerning and very accurate definition: One Meter is the distance the light travels, in a vacuum, through the time of 1 / 299.792.458 second; one kilogramm is the weight of a platinum-iridium cylindar in paris; and so on. But are these definitions useable in a computer mechanized world?!
   5.369 +	}}
   5.370 +	\caption{Units in measurement}\label{eg:units}
   5.371 +\end{example}
   5.372 +\par A computer or a CTP-System builds on programms witth predefined logical ruels and does not know any mathematical trick (follow up example \ref{eg:trick}) or recipe to walk around difficult expressions. 
   5.373 +\begin{example}
   5.374 +\[ \frac{1}{j\omega}\cdot\left(e^{-j\omega}-e^{j3\omega}\right)= \]
   5.375 +\[ \frac{1}{j\omega}\cdot e^{-j2\omega}\cdot\left(e^{j\omega}-e^{-j\omega}\right)=
   5.376 +	 \frac{1}{\omega}\, e^{-j2\omega}\cdot\colorbox{lgray}{$\frac{1}{j}\,\left(e^{j\omega}-e^{-j\omega}\right)$}= \]
   5.377 +\[ \frac{1}{\omega}\, e^{-j2\omega}\cdot\colorbox{lgray}{$2\, sin(\omega)$} \]
   5.378 +	{\small\textit{
   5.379 +		\noindent Sometimes it is also usefull to be able to apply some \emph{tricks} to get a beautiful and particulary meaningful result, which we are able to interpret. But as seen in this example it can be hard to find out what operations have to be done to transform a result into a meaningful one.
   5.380 +	}}
   5.381 +	\caption{Mathematic tricks}\label{eg:trick}
   5.382 +\end{example}
   5.383 +For such a system the only possibility is to work through its known definitions and stops if none of these fits. Specified on Signal Processing or any other application it is often possible to walk through by doing simple creases. This creases are in generell based on simple math operatiopms but the challange is to teach the machine \emph{all}\footnote{Its pride to call it \emph{all}.} of them. Unfortunataly the goal of CTP Isabelle is to reach a high level of \emph{all} but it in real it will still be a survey of knowledge which links to other knowledge and {{\sisac{}}} a trainer and helper but no human compensating calulator. 
   5.384 +\par {{\sisac{}}} itselfs aims to adds an \emph{application} axis (formal specifications of problems outof topics from Signal Processing, etc.) and an \emph{algorithmic} axis to the \emph{deductive} axis of physical knowledge. The result is a three-dimensional universe of mathematics.
   5.385 +
   5.386 +
   5.387 +
   5.388 +todo
   5.389 +
   5.390 +axiomatization ... where ... and
   5.391 +
   5.392 +\subsection{Notes on Problems with Traditional Notation}
   5.393 +%{\footnotesize
   5.394 +%\textbf{TODO}
   5.395 +%Due the thesis work we discorvers severell problems of traditional notations.
   5.396 +%
   5.397 +%u[n] !!
   5.398 +%
   5.399 +%f x =  why not f(x) ?!?!
   5.400 +%
   5.401 +%...
   5.402 +%
   5.403 +%terms are not full simplified in traditional notations, in isac we have to simplify them complete to check weather results are compatible or not. in e.g. the solutions of an second order linear equation is an rational in isac but in tradition we keep fractions as long as possible and as long as they are 'beautiful' (1/8, 5/16,...)
   5.404 +%}\\
   5.405 +
   5.406 +The math which should be mechanized in Computer Theorem Provers (\emph{CTP}) has (almost) a problem with traditional notations (predicate calculus) for axioms, definitions, lemmas, theorems as a computer programm or script is not able to interpret every greek or latin letter and every greek, latin or whatever calculations symbol. Also if we would be able to handle thehse symbols we still have a problem to interpret them at all. (Follow up \hbox{Example \ref{eg:symbint1}})
   5.407 +
   5.408 +\begin{example}
   5.409 +	\[
   5.410 +		u\left[n\right] \ \ldots \ unitstep
   5.411 +	\]
   5.412 +	{\small\textit{
   5.413 +		\noindent The unitstep is something we need to solve Signal Processing problem classes. But in {{\sisac{}}} the 	rectangular breakets have a different meaning. So we abuse them for our requirements. We get something which is not defined, but useable. The Result is syntax only without semantic.
   5.414 +	}}
   5.415 +	\caption{Expression Interpretation}\label{eg:symbint1}
   5.416 +\end{example}
   5.417 +
   5.418 +\noindent In different problems, symbols and letters have different meanings and ask for different ways to get through. (Follow up \hbox{Example \ref{eg:symbint2}}) 
   5.419 +\begin{example}
   5.420 +	\[
   5.421 +		\widehat{\ }\ \widehat{\ }\ \widehat{\ } \  \ldots \  exponent
   5.422 +	\]
   5.423 +	{\small\textit{
   5.424 +	\noindent For using exponents the three widehat symbols are required. The reason for that is due the development of {{\sisac{}}} the single widehat and also the double were already in use for different operations.
   5.425 +	}}
   5.426 +	\caption{Symbol Interpretation}\label{eg:symbint2}
   5.427 +\end{example}
   5.428 +Exclusive from the input, also the output can be a problem. We are familar with a specified notations and style taught in university but a computer programm has no knowledge of the form probved by a professor and the maschines themselve also have not yet the possibilities to print every symbol (correct) Recent developments provide proofs in a humand readable format but according to the fact that there is no mony for good working formel editors yet, the style is one thing we have to live with.
   5.429 +
   5.430 +\section{Milestones for the Thesis}
   5.431 +The thesis was splitted into six iterations
   5.432 +\begin{description}
   5.433 +\item[(29.06. -- 27.07.)] Collection of detailed informations about different STEOP topics \ref{ssec:infcol}
   5.434 +\item[(27.07.)] First Prsentation - Decition on which Problems will be implemented \ref{ssec:pres1}
   5.435 +\item[(01.09. -- 11.11.)] Implementing the Problem Class in {{\sisac{}}} \ref{ssec:impl}
   5.436 +\item[(14.11. -- 02.12.)] Documentation of the Implementation \ref{ssec:doc}
   5.437 +\item[(05.12. -- todo)] Writting on the thesis \ref{ssec:thes}
   5.438 +\item[todo] Second Prsentation - Work review \ref{ssec:pres2}
   5.439 +\end{description}
   5.440 +
   5.441 +\section{Detailed Milestone Description}
   5.442 +\subsection{Collection of detailed informations about different STEOP topics}\label{ssec:infcol}
   5.443 +identify problems relevant for certain SP lectures
   5.444 +estimate chances to realized them within the scope of this thesis
   5.445 +order for implementing the problems negotiated with lecturers
   5.446 +\subsection{First Prsentation - Decition on which Problems will be implemented}\label{ssec:pres1}
   5.447 +\subsection{Implementing the Problem Class in {\sisac}}\label{ssec:impl}
   5.448 +\subsection{Documentation of the Implementation}\label{ssec:doc}
   5.449 +\subsection{Writting on the thesis}\label{ssec:thes}
   5.450 +\subsection{Second Prsentation - Work review}\label{ssec:pres2}
   5.451 +
   5.452 +\section{Related Work}\label{sec:related}
   5.453 +Unusual for a Baccalaureate Thesis, there is {\em no} related work; this requires explanation.
   5.454 +Of course, this thesis relies on front-of-the wave computer mathematics, on CTP. But {{\sisac{}}} uses CTP in a very specific way, which is too weakly related to other work: programming in the CTP-based language and rigorous formal specification of problems in Signal Processing where the main tasks in the practical part of this thesis. The major challenge for the practical work was given by the fact, that the work concerned alpha-testing of the CTP-based programming environment.
   5.455 +\par Another  area of work could be considered as related work: authoring of e-learning content. However, {{\sisac{}}} provides division of concern such that the practical part of this thesis could focus on computer mathematics; this work was not concerned with interaction (the CTP-based programming language has neither input statements nor output statements), nor with dialog guidance nor with any kind of learning theory.
   5.456 +\par These two reasons are given for the unusual statement, that there is no related work to be discussed in this thesis. 
   5.457 +
   5.458 +\section{Review}
   5.459 +todo
   5.460 +\section{Open Questions}
   5.461 +todo
   5.462 +\section{Conclusions}
   5.463 +todo
   5.464 +
   5.465 +%\bibliographystyle{alpha}
   5.466 +%\bibliography{references}
   5.467 +%\bibliography{bib/math-eng,bib/didact,bib/bk,bib/RISC_2,bib/isac,bib/pl,bib/math}
   5.468 +
   5.469 +
   5.470 +\clearpage
   5.471 +
   5.472 +%----------// PART 2 \\----------%
   5.473 +
   5.474 +\newevenside
   5.475 +
   5.476 +\part{Implementation}
   5.477 +
   5.478 +
   5.479 +\input{./preambleForGeneratedDocuments.tex}
   5.480 +
   5.481 +\HRule
   5.482 +
   5.483 +%\setcounter{section}{0}
   5.484 +\input{../../../test/Tools/isac/ADDTESTS/course/SignalProcess/document/Build_Inverse_Z_Transform}
   5.485 +
   5.486 +\clearpage
   5.487 +
   5.488 +
   5.489 +%----------// APPENDIX \\-----------%
   5.490 +
   5.491 +\appendix
   5.492 +
   5.493 +%----------// BIB \\-----------%
   5.494 +
   5.495 +%\renewcommand{\refname}{\section{Sources}} % Using "Sources" as the title of the section
   5.496 +\bibliographystyle{alpha}
   5.497 +\bibliography{references}
   5.498 +\clearpage
   5.499 +
   5.500 +%----------// WORK TIME \\-----------%
   5.501 +
   5.502 +\section{Stundenliste}
   5.503 +\begin{footnotesize}
   5.504 +\begin{longtable}[h]{l p{6.5cm} c c r}
   5.505 +{\bf Date} & {\bf Description} & {\bf Begin} & {\bf End} & {\bf Dur.}\\
   5.506 +\hline \hline
   5.507 +\endhead
   5.508 +29.06.2011 & Treffen mit Geiger und Neuper & 15:00 & 17:30 & 2,50\\ 
   5.509 +02.07.2011 & Beispielaufbereitung (Bsp. Geiger Mail) & 20:00 & 21:30 & 1,50\\ 
   5.510 +03.07.2011 & Beispielaufbereitung, Vorraussetzungsausw. & 21:00 & 22:45 & 1,75\\ 
   5.511 +05.07.2011 & Treffen mit Neuper, Informationsaustausch & 10:00 & 13:00 & 3,00\\ 
   5.512 +06.07.2011 & Isabelle Installation & 20:00 & 22:30 & 2,50\\ 
   5.513 +07.07.2011 & Treffen mit Neuper, Präsentationsvorbereitung & 14:45 & 16:15 & 1,50\\ 
   5.514 +18.07.2011 & Präsentationsvorbereitung - Struktur & 14:15 & 16:00 & 1,75\\ 
   5.515 +19.07.2011 & Präsentationsvorbereitung - Inhalt & 07:20 & 09:20 & 2,00\\ 
   5.516 +19.07.2011 & Treffen mit Neuper & 10:00 & 12:00 & 2,00\\ 
   5.517 +21.07.2011 & HG Fehlersuche, Latex Ausarbeitung & 11:10 & 14:00 & 2,83\\ 
   5.518 +22.07.2011 & Treffen mit Neuper & 10:00 & 12:00 & 2,00\\ 
   5.519 +23.07.2011 & Berechnungen in Latex fertigstellen & 13:45 & 16:30 & 2,75\\ 
   5.520 +24.07.2011 & Präsentation fertigstellen & 20:10 & 20:40 & 0,50\\ 
   5.521 +25.07.2011 & Treffen mit Neuper, Präsentation \& erste Tests & 15:15 & 17:55 & 2,67\\ 
   5.522 +26.07.2011 & Test\_Complex.thy erarbeiten & 10:45 & 12:10 & 1,42\\ 
   5.523 +27.07.2011 & present-1 mit Neuper, Geiger & 10:00 & 12:00 & 2,00\\
   5.524 +\hline 
   5.525 +02.09.2011 & Treffen mit Neuper, Vorlage Bakk-Arbeit & 08:30 & 10:20 & 1,83\\ 
   5.526 +05.09.2011 & Treffen mit Neuper, Beginn Partialbruchzerlegung & 09:30 & 12:45 & 3,25\\ 
   5.527 +05.09.2011 & Partialbruchzerlegung & 17:10 & 18:30 & 1,33\\ 
   5.528 +06.09.2011 & Dokumentation Partialbruchzerlegung & 10:00 & 13:15 & 3,25\\ 
   5.529 +07.09.2011 & Treffen mit Neuper, Einführung Programmierung & 10:00 & 12:50 & 2,83\\ 
   5.530 +08.09.2011 & Latex Umgebung einrichten - Theory export & 19:00 & 22:45 & 3,75\\ 
   5.531 +09.09.2011 & Latex Umgebung einrichten - Makefile & 11:40 & 15:00 & 3,33\\ 
   5.532 +10.09.2011 & Treffen mit Neuper, HG Fehler, Skript Inv.-Z-Transf. & 10:00 & 12:00 & 2,00\\ 
   5.533 +14.09.2011 & Skript Inv.-Z-Transf Prgrammierung & 09:10 & 12:25 & 3,25\\ 
   5.534 +16.09.2011 & Informationssammlung Summen & 13:15 & 16:00 & 2,75\\ 
   5.535 +19.09.2011 & Programmierübung & 10:00 & 13:10 & 3,17\\ 
   5.536 +20.09.2011 & Trefffen mit Neuper, Unterstützung bei Program. & 15:30 & 18:10 & 2,67\\ 
   5.537 +23.09.2011 & Neukonfiguration IsaMakefile & 13:00 & 14:30 & 1,50\\ 
   5.538 +23.09.2011 & Treffen Neuper, Programmierung Build\_Inverse\_Z & 14:30 & 17:30 & 3,00\\ 
   5.539 +26.09.2011 & Skript Partialbruchzerlegung - getArgument & 13:30 & 16:15 & 2,75\\ 
   5.540 +27.09.2011 & Treffen mit Neuper, HG Fehler & 09:00 & 12:20 & 3,33\\ 
   5.541 +28.09.2011 & Treffen mit Neuper, Dateiumstrukturierung & 10:00 & 12:30 & 2,50\\ 
   5.542 +01.10.2011 & Testen & 10:00 & 11:00 & 1,00\\ 
   5.543 +02.10.2011 & Fehlersuche & 15:00 & 16:10 & 1,17\\ 
   5.544 +06.10.2011 & Treffen mit Neuper & 15:00 & 17:50 & 2,83\\ 
   5.545 +07.10.2011 & Treffen mit Neuper, Programmbesprechung & 15:00 & 16:50 & 1,83\\ 
   5.546 +09.10.2011 & Bakk. Arbeit & 16:30 & 18:45 & 2,25\\ 
   5.547 +11.10.2011 & Treffen mit Neuper, Programmbespr., Abstract & 14:10 & 17:10 & 3,00
   5.548 +\end{longtable}
   5.549 +\end{footnotesize}
   5.550 +
   5.551 +\section{Calculations\label{app:calc}}
   5.552 +\input{calulations}
   5.553 +\end{document}
   5.554 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/doc-src/isac/jrocnik/jrocnik_present.tex	Mon Mar 05 10:15:34 2012 +0100
     6.3 @@ -0,0 +1,434 @@
     6.4 +
     6.5 +\documentclass{beamer}
     6.6 +
     6.7 +
     6.8 +\mode<presentation>
     6.9 +{
    6.10 +  \usetheme{Hannover}
    6.11 +  \setbeamercovered{transparent}
    6.12 +}
    6.13 +
    6.14 +\usepackage[english]{babel}
    6.15 +\usepackage[utf8]{inputenc}
    6.16 +\usepackage{times}
    6.17 +\usepackage[T1]{fontenc}
    6.18 +
    6.19 +\def\isac{${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
    6.20 +\def\sisac{{\footnotesize${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}}
    6.21 +
    6.22 +\title[SPSC in \isac] % (optional, use only with long paper titles)
    6.23 +{Interactive Course Material\\ for Signal Processing\\ based on Isabelle/\isac}
    6.24 +
    6.25 +\subtitle{Baccalaureate Thesis}
    6.26 +
    6.27 +\author[Ro\v{c}nik]
    6.28 +{Jan Rocnik}
    6.29 +
    6.30 +\institute % (optional, but mostly needed)
    6.31 +{
    6.32 +  Technische Universit\"at Graz\\
    6.33 +  Institut f\"ur TODO
    6.34 +}
    6.35 +
    6.36 +% If you have a file called "university-logo-filename.xxx", where xxx
    6.37 +% is a graphic format that can be processed by latex or pdflatex,
    6.38 +% resp., then you can add a logo as follows:
    6.39 +
    6.40 +% \pgfdeclareimage[height=0.5cm]{university-logo}{university-logo-filename}
    6.41 +% \logo{\pgfuseimage{university-logo}}
    6.42 +
    6.43 +
    6.44 +
    6.45 +% Delete this, if you do not want the table of contents to pop up at
    6.46 +% the beginning of each subsection:
    6.47 +\AtBeginSubsection[]
    6.48 +{
    6.49 +  \begin{frame}<beamer>{Outline}
    6.50 +    \tableofcontents[currentsection,currentsubsection]
    6.51 +  \end{frame}
    6.52 +}
    6.53 +
    6.54 +\begin{document}
    6.55 +
    6.56 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.57 +%%												Title Page                             %%
    6.58 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.59 +
    6.60 +\begin{frame}
    6.61 +  \titlepage
    6.62 +\end{frame}
    6.63 +
    6.64 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.65 +%%												Table of Contents                      %%
    6.66 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.67 +
    6.68 +\begin{frame}{Outline}
    6.69 +  \tableofcontents
    6.70 +  % You might wish to add the option [pausesections]
    6.71 +\end{frame}
    6.72 +
    6.73 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.74 +%%---------------------------------------------------------------%%
    6.75 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.76 +
    6.77 +\section[Intro]{Introduction}
    6.78 +
    6.79 +\begin{frame}{Issues to be Accomplished}
    6.80 +
    6.81 +\begin{itemize}
    6.82 +
    6.83 +\item What knowledge is already mechanised in \emph{Isabelle}?
    6.84 +\item How can missing theorems and definitions be mechanised?
    6.85 +\item What is the effort for such mechanisation?
    6.86 +\item How do calculations look like, by using mechanised knowledge?
    6.87 +\item What problems and subproblems have to be solved?
    6.88 +\item Which problems are already implemented in \sisac?
    6.89 +\item How are the new problems specified (\sisac)?
    6.90 +\item Which variantes of programms in \sisac\ solve the problems?
    6.91 +\item What is the contents of the interactiv course material (Figures, etc.)?
    6.92 +
    6.93 +\end{itemize}
    6.94 +\end{frame}
    6.95 +
    6.96 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.97 +%%---------------------------------------------------------------%%
    6.98 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    6.99 +
   6.100 +\section[Fourier]{Fourier transformation}
   6.101 +\subsection[Fourier]{Fourier transform}
   6.102 +
   6.103 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.104 +%%												Fourier INTRO                          %%
   6.105 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.106 +
   6.107 +\begin{frame}\frametitle{Fourier Transformation: Introduction}
   6.108 +Possibilities:
   6.109 +\begin{itemize}
   6.110 +\item Transform operation by using property-tables
   6.111 +\item Transform operation by using integral
   6.112 +\end{itemize}
   6.113 +Also Important:
   6.114 +\begin{itemize}
   6.115 +\item Visualisation?!
   6.116 +\end{itemize}
   6.117 +\end{frame}
   6.118 +
   6.119 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.120 +%%										Transform expl   SPEC                      %%
   6.121 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.122 +
   6.123 +\begin{frame}\frametitle{Fourier Transformation: Specification}
   6.124 +{\footnotesize
   6.125 +
   6.126 +Determine the fourier transform for the given rectangular impulse:
   6.127 +
   6.128 +\begin{center}
   6.129 +$x(t)= \left\{
   6.130 +     \begin{array}{lr}
   6.131 +       1 & -1\leq t\leq1\\
   6.132 +       0 & else
   6.133 +     \end{array}
   6.134 +   \right.$
   6.135 +\end{center}
   6.136 +
   6.137 +\hrulefill
   6.138 +
   6.139 +\begin{tabbing}
   6.140 +1\=postcond \=: \= \= $\;\;\;\;$\=\kill
   6.141 +\>given    \>:\>  piecewise\_function \\
   6.142 +\>         \> \>  \>$fun (x (t::real),\ x=1\ ((t>=-1)\ \&\ (t<=1)),\ x=0)$\\
   6.143 +\>precond  \>:\>  TODO\\
   6.144 +\>find     \>:\>  $X(j\cdot\omega)$\\
   6.145 +\>postcond \>:\>  TODO\\
   6.146 +\end{tabbing}
   6.147 +
   6.148 +}
   6.149 +\end{frame}
   6.150 +
   6.151 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.152 +%%												Transform expl   REQ                   %%
   6.153 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.154 +
   6.155 +\begin{frame}\frametitle{Fourier Transform: Development effort}
   6.156 +{\small
   6.157 +\begin{center}
   6.158 +\begin{tabular}{l|l|r}
   6.159 +requirements            & comments             &effort\\ \hline\hline
   6.160 +solving Intrgrals		    & simple via propertie table     &     20\\
   6.161 +                        & \emph{real}          &    MT\\ \hline
   6.162 +transformation table    & simple transform     &    20\\ \hline
   6.163 +visualisation						& backend							 &    10\\ \hline
   6.164 +example collection      & with explanations    &    20\\ \hline\hline
   6.165 +                        &                      & 70-80\\
   6.166 +\end{tabular}
   6.167 +\end{center}
   6.168 +effort --- in 45min units\\
   6.169 +MT --- thesis ``Integrals'' (mathematics)
   6.170 +}
   6.171 +\end{frame}
   6.172 +
   6.173 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.174 +%%--------------------FOURIER---Conclusion-----------------------%%
   6.175 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.176 +
   6.177 +\begin{frame}{Fourier Transformation: Summary}
   6.178 +\begin{itemize}
   6.179 +
   6.180 +\item Standard integrals can be solved with tables
   6.181 +\item No real integration (yet avaible)
   6.182 +\item Math \emph{tricks} difficult to implement
   6.183 +
   6.184 +
   6.185 +\end{itemize}
   6.186 +\end{frame}
   6.187 +
   6.188 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.189 +%-----------------------------------------------------------------%
   6.190 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.191 +
   6.192 +\section[LTI Systems]{LTI systems}
   6.193 +\subsection[Convolution]{Convolution (Faltung)}
   6.194 +
   6.195 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.196 +%%												LTI INTRO				                       %%
   6.197 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.198 +
   6.199 +\begin{frame}\frametitle{Convolution: Introduction}
   6.200 +\begin{itemize}
   6.201 +\item Calculation include sums
   6.202 +\item Demonstrative examples
   6.203 +\item Visualisation is important
   6.204 +\end{itemize}
   6.205 +\end{frame}
   6.206 +
   6.207 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.208 +%%												LTI SPEC				                       %%
   6.209 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.210 +
   6.211 +\begin{frame}\frametitle{Convolution: Specification}
   6.212 +{\footnotesize
   6.213 +
   6.214 +Consider the two discrete-time, linear and time-invariant (LTI) systems with the following impulse response:
   6.215 +
   6.216 +\begin{center}
   6.217 +$h_1[n]=\left(\frac{3}{5}\right)^n\cdot u[n]$\\
   6.218 +$h_1[n]=\left(-\frac{2}{3}\right)^n\cdot u[n]$
   6.219 +\end{center}
   6.220 +
   6.221 +The two systems are cascaded seriell. Derive the impulse respinse of the overall system $h_c[n]$.
   6.222 +
   6.223 +\hrulefill
   6.224 +
   6.225 +\begin{tabbing}
   6.226 +1\=postcond \=: \= \= $\;\;\;\;$\=\kill
   6.227 +\>given    \>:\>  Signals h1[n], h2[n] \\
   6.228 +\>         \> \>  \>((h1[n]=(3/5)\textasciicircum{}n*u[n]),\,h2[n]=(-2/3)\textasciicircum{}n*u[n]))\\
   6.229 +                        
   6.230 +\>precond  \>:\>  TODO\\
   6.231 +\>find     \>:\>  $h1[n]\,*\,h2[n]$\\
   6.232 +\>postcond \>:\>  TODO\\
   6.233 +\end{tabbing}
   6.234 +
   6.235 +}
   6.236 +\end{frame}
   6.237 +
   6.238 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.239 +%%												LTI REQ  				                       %%
   6.240 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.241 +
   6.242 +\begin{frame}\frametitle{Convolution: Development effort}
   6.243 +{\small
   6.244 +\begin{center}
   6.245 +\begin{tabular}{l|l|r}
   6.246 +requirements            & comments             &effort\\ \hline\hline
   6.247 +simplify rationals      & \sisac               &     0\\ \hline
   6.248 +define $\sum\limits_{i=0}^{n}i$ & partly \sisac  &    10\\ \hline
   6.249 +simplify sum			      & termorder            &    10\\
   6.250 +                        & simplify rules       &    20\\
   6.251 +                        & use simplify rationals&     0\\ \hline
   6.252 +index adjustments       & with unit step       &      10\\ \hline
   6.253 +example collection      & with explanations    &    20\\ \hline\hline
   6.254 +                        &                      & 70-90\\
   6.255 +\end{tabular}
   6.256 +\end{center}
   6.257 +effort --- in 45min units\\
   6.258 +}
   6.259 +\end{frame}
   6.260 +
   6.261 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.262 +%%--------------------LTI-------Conclusion-----------------------%%
   6.263 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.264 +
   6.265 +\begin{frame}{Convolution: Summary}
   6.266 +\begin{itemize}
   6.267 +
   6.268 +\item Standard example
   6.269 +\item Straight forward
   6.270 +\item Challenge are sum limits
   6.271 +
   6.272 +\end{itemize}
   6.273 +\end{frame}
   6.274 +
   6.275 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.276 +%-----------------------------------------------------------------%
   6.277 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.278 +
   6.279 +\section[Z-transform]{Z-Transform}
   6.280 +\subsection[(Inverse) Z-Transform]{(Inverse) Z-Transform}
   6.281 +
   6.282 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.283 +%%												Z-Transform  INTRO                     %%
   6.284 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.285 +
   6.286 +\begin{frame}\frametitle{(Inverse) ${\cal Z}$-Transformation: Introduction}
   6.287 +\begin{itemize}
   6.288 +\item Pure Transformation is simple to realise with Z-Transform Properties (Table)
   6.289 +\item Partial Fraction are just math simplifications
   6.290 +\end{itemize}
   6.291 +\end{frame}
   6.292 +
   6.293 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.294 +%%												Z-Transform  SPEC                      %%
   6.295 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.296 +
   6.297 +\begin{frame}\frametitle{(Inverse) Z-Transformation: Specification}
   6.298 +{\footnotesize
   6.299 +
   6.300 +Determine the inverse z transform of the following expression. Hint: applay the partial fraction expansion.
   6.301 +
   6.302 +\begin{center}
   6.303 +$X(z)=\frac{3}{z-\frac{1}{4}-\frac{1}{8}z^{-1}},\ \ x[n]$ is absolute summable
   6.304 +\end{center}
   6.305 +
   6.306 +
   6.307 +\hrulefill
   6.308 +
   6.309 +\begin{tabbing}
   6.310 +1\=postcond \=: \= \= $\;\;\;\;$\=\kill
   6.311 +\>given    \>:\>  Expression of z \\
   6.312 +\>         \> \>  \>(X (z::complex),3/(z-1/4-1/8\,z\textasciicircum{}(-1)))\\
   6.313 +\>precond  \>:\>  TODO\\
   6.314 +\>find     \>:\>  Expression of n\\
   6.315 +\>         \> \>  \>$h[n]$\\
   6.316 +\>postcond \>:\>  TODO\\
   6.317 +\end{tabbing}
   6.318 +
   6.319 +}
   6.320 +\end{frame}
   6.321 +
   6.322 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.323 +%%												Z expl		REQ	                         %%
   6.324 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.325 +
   6.326 +
   6.327 +\begin{frame}\frametitle{(Inverse) Z-Transformation: Development effort}
   6.328 +{\small
   6.329 +\begin{center}
   6.330 +\begin{tabular}{l|l|r}
   6.331 +requirements            & comments             &effort\\ \hline\hline
   6.332 +solve for part.fract.   & \sisac: degree 2     &     0\\
   6.333 +                        & complex nomminators  &    30\\
   6.334 +                        & degree > 2           &    MT\\ \hline
   6.335 +simplify polynomial     & \sisac               &     0\\
   6.336 +simplify rational       & \sisac               &     0\\ \hline
   6.337 +part.fract.decomposition& degree 2             &      \\
   6.338 +                        & specification, method&    30\\ \hline
   6.339 +${\cal Z}^{-1}$ table    &                       &   20\\
   6.340 +                        & explanations, figures&    20\\ \hline
   6.341 +example collection      & with explanations    &    20\\ \hline\hline
   6.342 +                        &                      & 90-120\\
   6.343 +%                        &                      & 1 MT
   6.344 +\end{tabular}
   6.345 +\end{center}
   6.346 +effort --- in 45min units\\
   6.347 +MT --- thesis ``factorization'' (mathematics)
   6.348 +}
   6.349 +\end{frame}
   6.350 +
   6.351 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.352 +%%--------------------Z-TRANS---Conclusion-----------------------%%
   6.353 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.354 +
   6.355 +\begin{frame}{(Inverse) Z-Transformation: Summary}
   6.356 +\begin{itemize}
   6.357 +
   6.358 +\item No \emph{higher} math operations
   6.359 +\item Different subproblems of math (equation systems, etc.)
   6.360 +\item Both directions have the same effort
   6.361 +
   6.362 +\end{itemize}
   6.363 +\end{frame}
   6.364 +
   6.365 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.366 +%-----------------------------------------------------------------%
   6.367 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.368 +
   6.369 +\section[Conclusions]{Conclusions}
   6.370 +
   6.371 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.372 +%--------------------------DEMONSTRATION--------------------------%
   6.373 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.374 +
   6.375 +\begin{frame}{Demonstration}
   6.376 +
   6.377 +\centering{Demonstration}
   6.378 +
   6.379 +\end{frame}
   6.380 +
   6.381 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.382 +%--------------------------CONCLUSION-----------------------------%
   6.383 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.384 +
   6.385 +\begin{frame}{Conclusions}
   6.386 +
   6.387 +Design Challanges:
   6.388 +
   6.389 +{\small
   6.390 +\begin{itemize}
   6.391 +
   6.392 +\item Pre and Post conditions
   6.393 +\item Exact mathematic behind functions
   6.394 +\item Accurate mathematic notation
   6.395 +
   6.396 +\end{itemize}
   6.397 +}
   6.398 +
   6.399 +Goals:
   6.400 +{\small
   6.401 +\begin{itemize}
   6.402 +
   6.403 +\item Spot the power of \sisac
   6.404 +\item Implementation of generell but simple math problems
   6.405 +\item Setting up a good first guideline (documentation) for furher problem implemenations
   6.406 +
   6.407 +\end{itemize}
   6.408 +
   6.409 +\centering{Efforts are only approximations, due we have no \emph{real} experience data!}
   6.410 +}
   6.411 +
   6.412 +\end{frame}
   6.413 +
   6.414 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.415 +%--------------------------TIME LINE------------------------------%
   6.416 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   6.417 +
   6.418 +\begin{frame}{Comming up}
   6.419 +
   6.420 +{\small
   6.421 +\begin{tabular}{l r}
   6.422 +
   6.423 +Juli 2011 & project startup\\
   6.424 +Juli 2011 & information collection, 1st presentation\\
   6.425 +August 2011 & extern traineeship\\
   6.426 +September 2011 & main work\\
   6.427 +after Oktober & finishing, documentation\\
   6.428 +
   6.429 +\end{tabular}
   6.430 +}
   6.431 +
   6.432 +\end{frame}
   6.433 +
   6.434 +
   6.435 +\end{document}
   6.436 +
   6.437 +