doc-src/isac/dmeindl/proposal.tex
branchdecompose-isar
changeset 42273 3be1e95c4fbe
parent 42270 ff503b021e6c
parent 42272 dcc5d2601cf7
child 42274 9915408a8e56
     1.1 --- a/doc-src/isac/dmeindl/proposal.tex	Thu Sep 15 13:03:39 2011 +0200
     1.2 +++ b/doc-src/isac/dmeindl/proposal.tex	Sun Sep 18 15:34:24 2011 +0200
     1.3 @@ -1,177 +1,241 @@
     1.4 +%WN mit diesen 3 Zeichen beginnen meine Kommentare
     1.5 +
     1.6  \documentclass[12pt,a4paper]{article}
     1.7 -\usepackage{a4}
     1.8 -\usepackage[naustrian]{babel}
     1.9 -\usepackage[latin1]{inputenc}
    1.10 -\usepackage{calc}
    1.11 -\usepackage{amsmath}   
    1.12 -\usepackage{epsfig}
    1.13 -\usepackage{graphicx}
    1.14 -\usepackage{xcolor}
    1.15 -\usepackage{amsfonts}
    1.16 -
    1.17 -% Seitenräder einstellen und Höhe der Seitenzahlen
    1.18 -\usepackage{geometry}
    1.19 -\geometry{a4paper, left=2.5cm, right=2cm, top=3cm, bottom=2.8cm}
    1.20 -\setlength{\footskip}{2cm}
    1.21 -
    1.22 -
    1.23 -%Zähler definieren und Starwert setzen:
    1.24 -\newcommand{\R}{\mathbb R}
    1.25 -%\newcommand{\N}{\mathbb N}
    1.26 -%\newcommand{\Q}{\mathbb Q}
    1.27 -%\newcommand{\C}{\mathbb C}
    1.28 -
    1.29 -
    1.30 -\newcounter{ctr}
    1.31 -\setcounter{ctr}{0}
    1.32 -
    1.33 -\newcounter{Teubner}
    1.34 -\newcounter{Klingenberg}
    1.35 -\newcounter{T}
    1.36 -\newcounter{Vo}
    1.37 -\newcounter{Se}
    1.38 -\newcounter{E}
    1.39 -\newcounter{Bwl}
    1.40 -\newcounter{Int}
    1.41 -\newcounter{Prim}
    1.42 -\newcounter{Z}
    1.43 -\setcounter{Z}{0}
    1.44 -\setcounter{Teubner}{1}
    1.45 -\setcounter{Klingenberg}{2}
    1.46 -\setcounter{T}{1}
    1.47 -\setcounter{Vo}{7}
    1.48 -\setcounter{Se}{2}
    1.49 -\setcounter{E}{3}
    1.50 -\setcounter{Bwl}{4}
    1.51 -\setcounter{Int}{5}
    1.52 -\setcounter{Prim}{6}
    1.53 -%BSP
    1.54 -\newenvironment{myBsp}{
    1.55 -  \begin{list}{\textbf{\textsc{Bsp:}}}{
    1.56 -    \setlength{\labelwidth}{8Pc}
    1.57 -    \setlength{\labelsep}{0.5Pc}    
    1.58 -    \setlength{\rightmargin}{0Pc}
    1.59 -    \setlength{\leftmargin}{2Pc}
    1.60 -    \setlength{\parsep}{0ex plus 0.5ex}
    1.61 -    \setlength{\listparindent}{1em}
    1.62 -    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
    1.63 -    \setlength{\topsep}{0.5Pc}
    1.64 -  }}
    1.65 -  {\end{list}
    1.66 -}
    1.67 -
    1.68 -
    1.69 -%Lemma
    1.70 -\newenvironment{myLemma}{
    1.71 -  \begin{list}{\textsc{\textbf{Lemma:\ \ \ }}}{
    1.72 -   \setlength{\labelsep}{-0.5Pc}    
    1.73 -    \setlength{\leftmargin}{1Pc}
    1.74 -    \setlength{\parsep}{0ex plus 0.5ex}
    1.75 -    \setlength{\listparindent}{1em}
    1.76 -    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
    1.77 -    \setlength{\topsep}{0.5Pc}
    1.78 -  }}
    1.79 -  {\end{list}
    1.80 -}
    1.81 -%Korollar
    1.82 -\newenvironment{myKorollar}{
    1.83 -  \begin{list}{\textsc{\textbf{Korollar: }}}{
    1.84 -    \setlength{\labelwidth}{8Pc}
    1.85 -    \setlength{\labelsep}{0.5Pc}    
    1.86 -    \setlength{\rightmargin}{0Pc}
    1.87 -    \setlength{\leftmargin}{4Pc}
    1.88 -    \setlength{\parsep}{0ex plus 0.5ex}
    1.89 -    \setlength{\listparindent}{1em}
    1.90 -    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
    1.91 -    \setlength{\topsep}{0.5Pc}
    1.92 -  }}
    1.93 -  {\end{list}
    1.94 -}
    1.95 -
    1.96 -%Theorem
    1.97 -\newenvironment{myTheorem}{
    1.98 -  \begin{list}{\textsc{\textbf{Theorem: }}}{
    1.99 -    \setlength{\labelwidth}{8Pc}
   1.100 -    \setlength{\labelsep}{0.5Pc}    
   1.101 -    \setlength{\rightmargin}{0Pc}
   1.102 -    \setlength{\leftmargin}{5Pc}
   1.103 -    \setlength{\parsep}{0ex plus 0.5ex}
   1.104 -    \setlength{\listparindent}{1em}
   1.105 -    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.106 -    \setlength{\topsep}{0.5Pc}
   1.107 -  }}
   1.108 -  {\end{list}
   1.109 -}
   1.110 -
   1.111 -
   1.112 -%Proportion
   1.113 -\newenvironment{myProp}{
   1.114 -  \begin{list}{\textsc{\textbf{Proportion: }}}{
   1.115 -    \setlength{\labelwidth}{8Pc}
   1.116 -    \setlength{\labelsep}{0.5Pc}    
   1.117 -    \setlength{\rightmargin}{0Pc}
   1.118 -    \setlength{\leftmargin}{4Pc}
   1.119 -    \setlength{\parsep}{0ex plus 0.5ex}
   1.120 -    \setlength{\listparindent}{1em}
   1.121 -    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.122 -    \setlength{\topsep}{0.5Pc}
   1.123 -  }}
   1.124 -  {\end{list}
   1.125 -}
   1.126 -
   1.127 -%Farben
   1.128 -
   1.129 -\newcommand{\red}[1]{\textcolor[rgb]{0.7,0,0}{\bf #1}}
   1.130 -\newcommand{\rd}[1]{\color{red}{#1}}
   1.131 -\newcommand{\white}[1]{\textcolor[rgb]{1,0,0}{\bf #1}}
   1.132 -\newcommand{\w}[1]{\color{white}{#1}}
   1.133 -\newcommand{\g}[1]{\color{myColor}{#1}}
   1.134 -
   1.135 -\usepackage{color}
   1.136 -\definecolor{myColor}{rgb}{0.9,0.9,0.9}% Wir definieren im RGB-Farbraum
   1.137 -
   1.138 -
   1.139 -\newcommand{\myDef}[1]{\parbox{\columnwidth}{\addtocounter{ctr}{1}{\w .}\\[-0.2cm]\textbf{Definition\ \Nummer:}\\#1}}
   1.140 -\newcommand{\mySatz}[2]{\colorbox{myColor}{\parbox{\columnwidth}{\addtocounter{ctr}{1}{\g .}\\[-0.2cm]\textbf{Satz\ \Nummer:}\ #1\\ #2}}}
   1.141 -\newcommand{\myBeweis}[1]{\textit{\textbf{Beweis:}\\ #1}}
   1.142 -\newcommand{\myAlg}[2]{\parbox{\columnwidth}{\addtocounter{ctr}{1}\textbf{Algorithmus\ \Nummer:}\ \ #1\\#2}}
   1.143 -\newcommand{\myProg}[1]{\fbox{\parbox{\columnwidth}{#1}}}
   1.144 -
   1.145 -\newcommand{\add}[1]{\addtocounter{#1}{1}}
   1.146 -\newcommand{\zahl}[1]{\setcounter{#1}{Z}}
   1.147 -\newcommand{\Q}[2]{\parbox{\columnwidth}{$^{[\arabic{#1}/#2]}$ }}
   1.148 -
   1.149 -\newcommand{\Nummer}{\thesection.\arabic{ctr}}
   1.150 -
   1.151 +\bibliographystyle{alpha}
   1.152 +\def\isac{${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}
   1.153 +\def\sisac{{\footnotesize${\cal I}\mkern-2mu{\cal S}\mkern-5mu{\cal AC}$}}
   1.154 +%\usepackage{a4}
   1.155 +%\usepackage[naustrian]{babel}
   1.156 +%\usepackage[latin1]{inputenc}
   1.157 +%\usepackage{calc}
   1.158 +%\usepackage{amsmath}   
   1.159 +%\usepackage{epsfig}
   1.160 +%\usepackage{graphicx}
   1.161 +%\usepackage{xcolor}
   1.162 +%\usepackage{amsfonts}
   1.163 +%
   1.164 +%WN BITTE DIESE DEFINITIONEN WEGLASSEN ...
   1.165 +%% Seitenräder einstellen und Höhe der Seitenzahlen
   1.166 +%\usepackage{geometry}
   1.167 +%\geometry{a4paper, left=2.5cm, right=2cm, top=3cm, bottom=2.8cm}
   1.168 +%\setlength{\footskip}{2cm}
   1.169 +%
   1.170 +%
   1.171 +%%Zähler definieren und Starwert setzen:
   1.172 +%\newcommand{\R}{\mathbb R}
   1.173 +%%\newcommand{\N}{\mathbb N}
   1.174 +%%\newcommand{\Q}{\mathbb Q}
   1.175 +%%\newcommand{\C}{\mathbb C}
   1.176 +%
   1.177 +%
   1.178 +%\newcounter{ctr}
   1.179 +%\setcounter{ctr}{0}
   1.180 +%
   1.181 +%\newcounter{Teubner}
   1.182 +%\newcounter{Klingenberg}
   1.183 +%\newcounter{T}
   1.184 +%\newcounter{Vo}
   1.185 +%\newcounter{Se}
   1.186 +%\newcounter{E}
   1.187 +%\newcounter{Bwl}
   1.188 +%\newcounter{Int}
   1.189 +%\newcounter{Prim}
   1.190 +%\newcounter{Z}
   1.191 +%\setcounter{Z}{0}
   1.192 +%\setcounter{Teubner}{1}
   1.193 +%\setcounter{Klingenberg}{2}
   1.194 +%\setcounter{T}{1}
   1.195 +%\setcounter{Vo}{7}
   1.196 +%\setcounter{Se}{2}
   1.197 +%\setcounter{E}{3}
   1.198 +%\setcounter{Bwl}{4}
   1.199 +%\setcounter{Int}{5}
   1.200 +%\setcounter{Prim}{6}
   1.201 +%%BSP
   1.202 +%\newenvironment{myBsp}{
   1.203 +%  \begin{list}{\textbf{\textsc{Bsp:}}}{
   1.204 +%    \setlength{\labelwidth}{8Pc}
   1.205 +%    \setlength{\labelsep}{0.5Pc}    
   1.206 +%    \setlength{\rightmargin}{0Pc}
   1.207 +%    \setlength{\leftmargin}{2Pc}
   1.208 +%    \setlength{\parsep}{0ex plus 0.5ex}
   1.209 +%    \setlength{\listparindent}{1em}
   1.210 +%    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.211 +%    \setlength{\topsep}{0.5Pc}
   1.212 +%  }}
   1.213 +%  {\end{list}
   1.214 +%}
   1.215 +%
   1.216 +%
   1.217 +%%Lemma
   1.218 +%\newenvironment{myLemma}{
   1.219 +%  \begin{list}{\textsc{\textbf{Lemma:\ \ \ }}}{
   1.220 +%   \setlength{\labelsep}{-0.5Pc}    
   1.221 +%    \setlength{\leftmargin}{1Pc}
   1.222 +%    \setlength{\parsep}{0ex plus 0.5ex}
   1.223 +%    \setlength{\listparindent}{1em}
   1.224 +%    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.225 +%    \setlength{\topsep}{0.5Pc}
   1.226 +%  }}
   1.227 +%  {\end{list}
   1.228 +%}
   1.229 +%%Korollar
   1.230 +%\newenvironment{myKorollar}{
   1.231 +%  \begin{list}{\textsc{\textbf{Korollar: }}}{
   1.232 +%    \setlength{\labelwidth}{8Pc}
   1.233 +%    \setlength{\labelsep}{0.5Pc}    
   1.234 +%    \setlength{\rightmargin}{0Pc}
   1.235 +%    \setlength{\leftmargin}{4Pc}
   1.236 +%    \setlength{\parsep}{0ex plus 0.5ex}
   1.237 +%    \setlength{\listparindent}{1em}
   1.238 +%    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.239 +%    \setlength{\topsep}{0.5Pc}
   1.240 +%  }}
   1.241 +%  {\end{list}
   1.242 +%}
   1.243 +%
   1.244 +%%Theorem
   1.245 +%\newenvironment{myTheorem}{
   1.246 +%  \begin{list}{\textsc{\textbf{Theorem: }}}{
   1.247 +%    \setlength{\labelwidth}{8Pc}
   1.248 +%    \setlength{\labelsep}{0.5Pc}    
   1.249 +%    \setlength{\rightmargin}{0Pc}
   1.250 +%    \setlength{\leftmargin}{5Pc}
   1.251 +%    \setlength{\parsep}{0ex plus 0.5ex}
   1.252 +%    \setlength{\listparindent}{1em}
   1.253 +%    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.254 +%    \setlength{\topsep}{0.5Pc}
   1.255 +%  }}
   1.256 +%  {\end{list}
   1.257 +%}
   1.258 +%
   1.259 +%
   1.260 +%%Proportion
   1.261 +%\newenvironment{myProp}{
   1.262 +%  \begin{list}{\textsc{\textbf{Proportion: }}}{
   1.263 +%    \setlength{\labelwidth}{8Pc}
   1.264 +%    \setlength{\labelsep}{0.5Pc}    
   1.265 +%    \setlength{\rightmargin}{0Pc}
   1.266 +%    \setlength{\leftmargin}{4Pc}
   1.267 +%    \setlength{\parsep}{0ex plus 0.5ex}
   1.268 +%    \setlength{\listparindent}{1em}
   1.269 +%    \setlength{\itemsep}{1ex plus 0.5ex minus 0.2ex}
   1.270 +%    \setlength{\topsep}{0.5Pc}
   1.271 +%  }}
   1.272 +%  {\end{list}
   1.273 +%}
   1.274 +%
   1.275 +%%Farben
   1.276 +%
   1.277 +%\newcommand{\red}[1]{\textcolor[rgb]{0.7,0,0}{\bf #1}}
   1.278 +%\newcommand{\rd}[1]{\color{red}{#1}}
   1.279 +%\newcommand{\white}[1]{\textcolor[rgb]{1,0,0}{\bf #1}}
   1.280 +%\newcommand{\w}[1]{\color{white}{#1}}
   1.281 +%\newcommand{\g}[1]{\color{myColor}{#1}}
   1.282 +%
   1.283 +%\usepackage{color}
   1.284 +%\definecolor{myColor}{rgb}{0.9,0.9,0.9}% Wir definieren im RGB-Farbraum
   1.285 +%
   1.286 +%
   1.287 +%\newcommand{\myDef}[1]{\parbox{\columnwidth}{\addtocounter{ctr}{1}{\w .}\\[-0.2cm]\textbf{Definition\ \Nummer:}\\#1}}
   1.288 +%\newcommand{\mySatz}[2]{\colorbox{myColor}{\parbox{\columnwidth}{\addtocounter{ctr}{1}{\g .}\\[-0.2cm]\textbf{Satz\ \Nummer:}\ #1\\ #2}}}
   1.289 +%\newcommand{\myBeweis}[1]{\textit{\textbf{Beweis:}\\ #1}}
   1.290 +%\newcommand{\myAlg}[2]{\parbox{\columnwidth}{\addtocounter{ctr}{1}\textbf{Algorithmus\ \Nummer:}\ \ #1\\#2}}
   1.291 +%\newcommand{\myProg}[1]{\fbox{\parbox{\columnwidth}{#1}}}
   1.292 +%
   1.293 +%\newcommand{\add}[1]{\addtocounter{#1}{1}}
   1.294 +%\newcommand{\zahl}[1]{\setcounter{#1}{Z}}
   1.295 +%\newcommand{\Q}[2]{\parbox{\columnwidth}{$^{[\arabic{#1}/#2]}$ }}
   1.296 +%
   1.297 +%\newcommand{\Nummer}{\thesection.\arabic{ctr}}
   1.298 +%
   1.299  %---------- --------------------------------------------------- Beginn -----------------------------------------------------------------------
   1.300  
   1.301 -\title{Greatest common divisor \\ for multi variable Polynomials}
   1.302 -\author{By\\Diana Meindl\\meindl$_-$diana@yahoo.com}
   1.303 -\date{}
   1.304 +\title{Greatest Common Divisor \\ for Multivariate Polynomials}
   1.305 +\author{Diana Meindl\\meindl\_diana@yahoo.com}
   1.306 +\date{\today}
   1.307  
   1.308  \begin{document}
   1.309  \maketitle
   1.310 -{\w .}\\[12cm]
   1.311 -\begin{center}
   1.312 -Presented to \\
   1.313 -A.Univ.Prof. Dipl.-Ing. Dr. Wolfgang Schreiner (RISC Insitute)\\
   1.314 -and\\
   1.315 -Dr. techn. Walther Neuper (Institut für Softwaretechnologie, TU Graz)
   1.316 -\end{center}
   1.317 +%{\w .}\\[12cm]
   1.318 +%\begin{center}
   1.319 +%Presented to \\
   1.320 +%A.Univ.Prof. Dipl.-Ing. Dr. Wolfgang Schreiner (RISC Insitute)\\
   1.321 +%and\\
   1.322 +%Dr. techn. Walther Neuper (Institut für Softwaretechnologie, TU Graz)
   1.323 +%\end{center}
   1.324 +%\newpage
   1.325 +%{\w .}\hspace{6.5cm}\textbf{Abstact}\\[0.5cm]
   1.326 +
   1.327 +\abstract{
   1.328 +This is a proposal for a Masters Thesis at RISC, the Research Institute for Symbolic Computation at Linz University.\\
   1.329 +
   1.330 +Calculation with fractions is an important part of Computer Algebra Systems (CAS). This proposal aims at a specific part of such calculations, the greatest common divisor (GCD) used for cancellation, but in the very general context of multivariate polynomials. Cancellation of multivariate polynomials is a settled topic in Computer Algebra, respective algorithms well documented and implementations available in all CASs.
   1.331 +
   1.332 +This proposal claims for novelty with respect to the context of implementation in Computer Theorem Proving (CTP). On CTP's present development towards industrial use in software and systems verification, specific domain models involve demand on more and more mathematics, and within mathematics involve demand for more and more features. The proposed implementation of GCD and cancellation follows an actual demand.
   1.333 +
   1.334 +If the implementation is successful, it might be included into the distribution of Isabelle, one of the two dominating CTPs in Europe.
   1.335 +}
   1.336 +
   1.337  \newpage
   1.338 -{\w .}\hspace{6.5cm}\textbf{Abstract}\\[0.5cm]
   1.339 -Calculation with fractions is an important part of Computer-Algebra-Systems (CAS). Therefor you need algorithms for canceling fractions, respectively for the greatest common divisor (GCD).
   1.340 +%WN vorerst zu Zwecken der "Ubersicht lassen ...
   1.341 +\tableofcontents
   1.342 +
   1.343  \section{Background}
   1.344 -The ISAC-project is a research and development project at the Institute for Software Technology of the Graz University of Technology. It is an educational mathematics assistant, a single-stepping system for applied mathematics based on the computer theorem prover Isabelle. The special is an easy readable knowledge base including Isabelles HOL-theories and a transparently working knowledge interpreter (a generalization of 'single stepping' algebra systems).
   1.345 -The background to both, development and research, is given by actual needs in math education as well as by fundamental questions about 'the mechanization of thinking' as an essential aspect in mathematics and in technology.
   1.346 -The ISAC-system under construction comprises a tutoring-system and an authoring-system. The latter provides for adaption to various needs of individual users and educational institutions and for extensions to arbitrary fields of applied mathematics.
   1.347 - 
   1.348 +The \sisac-project is a research and development project at the Institute for Software Technology of the Graz University of Technology. It is an educational mathematics assistant, a single-stepping system for applied mathematics based on the computer theorem prover Isabelle. The special is an easy readable knowledge base including Isabelles HOL-theories and a transparently working knowledge interpreter (a generalization of 'single stepping' algebra systems).
   1.349 +The background to both, development and research, is given by actual needs in math education as well as by foundamental questions about 'the mechanization of thinking' as an essential aspect in mathematics and in technology.
   1.350 +The \sisac-system under construction comprises a tutoring-system and an authoring-system. The latter provides for adaption to various needs of individual users and educational institutions and for extensions to arbitrary fields of applied mathematics.
   1.351 +
   1.352 +TODO:\\
   1.353 +European provers: Isabelle \cite{Nipkow-Paulson-Wenzel:2002}, Coq \cite{Huet_all:94}\\
   1.354 +American provers: PVS~\cite{pvs}, ACL2~\footnote{http://userweb.cs.utexas.edu/~moore/acl2/}\\
   1.355 +
   1.356  \section{Goal of the thesis}
   1.357  \subsection{Current situation}
   1.358 -At the time there is no good implementation for the problem of canceling fractions in Isac and or in Isabelle. But because canceling is important for calculating with fractions a new implementation is necessary.
   1.359 +At the time there is no good implimentation for the problem of canceling fractions in \sisac and or in Isabelle. But because canceling is important for calculating with fractions a new implimentation is necessary.
   1.360  
   1.361  \subsection{Problem} 
   1.362 -The wish is to handle fractions in Isac not only in one variable also in more. So the goal of this thesis is to find, assess and evaluate the existing algorithms and methods for finding the GCD. This will be an functional program with the possibility to include it into Isabelle.
   1.363 +The wish is to handle fractions in \sisac not only in one variable also in more. So the goal of this thesis ist to find, assess and evaluate the existing algorithms and methods for finding the GCD. This will be an functional programm with the posibility to include it into Isabelle.
   1.364 +
   1.365 +%WN eine pr"azisere Beschreibung des Problems kann ich mir nicht vorstellen (englische Version der Mail haben wir auch, aber sie passt nicht zur deutschen Antwort von Prof.Nipkow) ...
   1.366 +\bigskip
   1.367 +TODO Mail to Prof. Nipkow, leader of the development of Isabelle \cite{Nipkow-Paulson-Wenzel:2002} at TU M\"unchen, Mon, 23 May 2011 08:58:14 +0200:
   1.368 +\begin{verbatim}
   1.369 +Eine erste Idee, wie die Integration der Diplomarbeit f"ur
   1.370 +einen Benutzer von Isabelle aussehen k"onnte, w"are zum 
   1.371 +Beispiel im
   1.372 +
   1.373 +   lemma cancel:
   1.374 +     assumes asm3: "x2 - x*y \<noteq> 0" and asm4: "x \<noteq> 0"
   1.375 +     shows "(x2 - y2) / (x2 - x*y) = (x + y) / (x::real)"
   1.376 +     apply (insert asm3 asm4)
   1.377 +     apply simp
   1.378 +   sorry
   1.379 +
   1.380 +die Assumptions
   1.381 +
   1.382 +   asm1: "(x2 - y2) = (x + y) * (x - y)" and asm2: "x2 - x*y = x * (x - y)"
   1.383 +
   1.384 +im Hintergrund automatisch zu erzeugen (mit der Garantie, 
   1.385 +dass "(x - y)" der GCD ist) und sie dem Simplifier (f"ur die 
   1.386 +Rule nonzero_mult_divide_mult_cancel_right) zur Verf"ugung zu 
   1.387 +stellen, sodass anstelle von "sorry" einfach "done" stehen kann.
   1.388 +Und weiters w"are eventuell asm3 zu "x - y \<noteq> 0" zu vereinfachen, 
   1.389 +eine Rewriteorder zum Herstellen einer Normalform festzulegen, etc.
   1.390 +\end{verbatim}
   1.391 +%WN und eine bessere Motivation f"ur eine Master Thesis kann ich mir auch nicht vorstellen ...
   1.392 +Response of Prof. Nipkow:
   1.393 +
   1.394 +\begin{verbatim}
   1.395 +Unser Spezialist fuer die mathematischen Theorien ist Johannes H"olzl. 
   1.396 +Etwas allgemeinere Fragen sollten auf jeden Fall an isabelle-dev@ 
   1.397 +gestellt werden.
   1.398 +
   1.399 +Viel Erfolg bei der Arbeit!
   1.400 +Tobias Nipkow
   1.401 +\end{verbatim}
   1.402 +
   1.403 +
   1.404  \subsection{Expected results}
   1.405  Find good algorithms for the different problems, and find out which one will be the best for the special problem.\\
   1.406  The program should handling:
   1.407 @@ -179,42 +243,197 @@
   1.408  \item[]real and rational coefficients. Maybe also imaginary coefficients.
   1.409  \item[]Multi variable polynomials canceling and adding, when they are in normal form.
   1.410  \end{itemize}
   1.411 -For the program should be used a functional programing language with good commentaries. And it should be based on Isabelle and works correctly in Isac.
   1.412 -\newpage
   1.413 +For the program should be used a functional programming language with good commentaries. And it should be based on Isabelle and works correctly in \sisac.
   1.414  
   1.415  \section{State of the art}
   1.416 -Was ist vorhanden, was kann ich aus welchen Büchern für meine Arbeit verwenden
   1.417 -Es gibt verschiedene CAS die bereits einen Algrotihmus implimentiert haben, wie haben die das gemacht, und welcher ist für mich am besten.
   1.418 +In a broad view the context of this thesis can be seen as ``computation and deduction'': simplification and in particular cancellation of rational terms is concern of \textbf{computation} implemented in Computer Algebra Systems (CAS) --- whereas the novelty within the thesis is given by an implementation of cancellation in a computer theorem prover (CTP), i.e. in the domain of \textbf{deduction} with respective logical rigor not addressed in the realm of CAS.
   1.419  
   1.420 -\newpage
   1.421 +Below, after a general survey on computation, represented by CAS, and on deduction, represented by CTP, a more narrow view on ``CAS-functionality in CTP'' is pursued.
   1.422 +
   1.423 +\subsection{Computer Algebra and Proof Assistants}
   1.424 +%WN achtung: diese subsection is fast w"ortlich kopiert aus \cite{plmms10} -- also in der Endfassung bitte "uberarbeiten !!!
   1.425 +Computer Algebra and Proof Assistants have coexisted for a many years so there is much research trying to bridge the gap between these approaches from both sides. We shall continue to abbreviate Computer Algebra (Systems) by ``CAS'', and in analogy we shall abbreviate proof assistants by CTP, computer theorem provig (comprising both, interactive theorem proving (ITP) and automated theorem proving (ATP), since in CTP there are ATP-tools included today.)
   1.426 +
   1.427 +First, many CTPs already have CAS-like functionality,
   1.428 +especially for domains like arithmetic. They provide the user
   1.429 +with conversions, tactics or decision procedures that solve
   1.430 +problems in a particular domain. Such decision procedures present
   1.431 +in the standard library of HOL Light~\footnote{http://www.cl.cam.ac.uk/~jrh13/hol-light/} are used inside the
   1.432 +prototype described in Sect.\ref{cas-funct} on p.\pageref{part-cond} for arithmetic's,
   1.433 +symbolic differentiation and others.
   1.434 +
   1.435 +Similarly some CAS systems provide environments that allow
   1.436 +logical reasoning and proving properties within the system. Such
   1.437 +environments are provided either as logical
   1.438 +extensions (e.g.~\cite{logicalaxiom}) or are implemented within a
   1.439 +CAS using its language~\cite{theorema00}.
   1.440 +
   1.441 +There are numerous architectures for information exchange between
   1.442 +CAS and CTP with different levels of \emph{degree of trust}
   1.443 +between the prover and the CAS. In principle, there are several approaches. 
   1.444 +If CAS-functionality is not fully embedded in CTP, CAS can be called as ``oracles'' nevertheless (for efficiency reasons, in general) --- their results are regarded like prophecies of Pythia in Delphi. There are three kinds of checking oracles, however:
   1.445 +\begin{enumerate}
   1.446 +\item Just adopt the CAS result without any check. Isabelle internally marks such results.
   1.447 +\item Check the result inside CTP. There are many cases, where such checks are straight forward, for instance, checking the result of factorization by multiplication of the factors, or checking integrals by differentiation.
   1.448 +\item Generate a derivation of the result within CTP; in Isabelle this is called ``proof reconstruction''.
   1.449 +\end{enumerate}
   1.450 +A longer list of frameworks for
   1.451 +information exchange and bridges between systems can be found
   1.452 +in~\cite{casproto}.
   1.453 +
   1.454 +There are many approaches to defining partial functions in proof
   1.455 +assistants. Since we would like the user to define functions
   1.456 +without being exposed to the underlying logic of the proof
   1.457 +assistant we only mention some automated mechanisms for defining
   1.458 +partial functions in the logic of a CTP.
   1.459 +Krauss~\cite{krauss} has developed a framework for defining
   1.460 +partial recursive functions in Isabelle/HOL, which formally
   1.461 +proves termination by searching for lexicographic combinations of
   1.462 +size measures. Farmer~\cite{farmer} implements a scheme for
   1.463 +defining partial recursive functions in \textrm{IMPS}.
   1.464 +
   1.465 +\subsection{Motivation for CAS-functionality in CTP}
   1.466 +In the realm of CTP formuas are dominated by quantifiers $\forall$, $\exists$ and $\epsilon$ (such) and by operations like $\Rightarrow$, $\land$ and $\lor$. Numbers were strangers initially; numerals have been introduced to Isabelle not much before the year 2000~\footnote{In directory src/Provers/Arith/ see the files cancel\_numerals.ML and cancel\_numeral\_factor.ML in the Isabelle distribution 2011. They still use the notation $\#1,\#2,\#3,\dots$ from before 2000~!}. However, then numerals have been implemented with {\em polymorphic type} such that $2\cdot r\cdot\pi$ ($2$ is type \textit{real}) and $\pi_{\it approx}=3.14\,\land\, 2\cdot r\cdot\pi_{\it approx}$ can be written as well as $\sum_i^n i=\frac{n\cdot(n+1)}{2}$ ($2$ is type \textit{nat}). The different types are inferred by Hindle-Milner type inference \cite{damas-milner-82,Milner-78,Hindley-69}.
   1.467 +
   1.468 +1994 was an important year for CTP: the Pentium Bug caused excitement in the IT community all around the world and motivated INTEL to invest greatly into formal verification of circuits (which carried over to verification of software). Not much later John Harrison mechanized real numbers as Dedekind Cuts in HOL Light \footnote{http://www.cl.cam.ac.uk/~jrh13/hol-light/} and derived calculus, derivative and integral from that definition \cite{harr:thesis}, an implementation which has been transferred to Isabelle very soon after that~\footnote{In the directory src/HOL/Multivariate\_Analysis/ see the files Gauge\_Measure.thy, Integration.thy, Derivative.thy, Real\_Integration.thy, Brouwer\_Fixpoint.thy, Fashoda.thy}.
   1.469 +
   1.470 +Harrison also says that ``CAS are ill-defined'' and gives, among others, an example relevant for this thesis on cancellation: TODO ... meromorphic functions ...
   1.471 +
   1.472 +\medskip
   1.473 +The main motivation for further introduction of CAS-functionality to CTP is also technology-driven: In this decade domain engineering is becoming an academic discipline with industrial relevance \cite{db:dom-eng}: vigorous efforts extend the scope of formal specifications even beyond software technology, and thus respective domains of mathematical knowledge are being mechanized in CTP. The Archive of Formal Proofs~\footnote{http://afp.sourceforge.net/} is Isabelle's repository for such work.
   1.474 +
   1.475 +\subsection{Simplification within CTP}
   1.476 +Cancellation, the topic of this thesis, is a specific part of simplification of rationals. In the realm of CAS cancellation is {\em not} an interesting part of the state of the art, because cancellation has been implemented in the prevailing CAS more than thirty years ago --- however, cancellation of multivariate polynomials is {\em not} yet implemted in any of the dominating CTPs.
   1.477 +%WN: bitte mit Anfragen an die Mailing-Listen nachpr"ufen: Coq, HOL, ACL2, PVS
   1.478 +
   1.479 +As in other CTPs, in Isabelle the simplifier is a powerful software component; the sets of rewrite rules, called \textit{simpsets}, contain several hundreds of elements. Rewriting is still very efficient, because the simpsets are transformed to term nets \cite{term-nets}.
   1.480 +
   1.481 +Rational terms of multivariate polynomials still have a normal form \cite{bb-loos} and thus equivalence of respective terms is decidable. This is not the case, however, with terms containing roots or transcedent functions. Thus, CAS are unreliable by design in these cases.
   1.482 +
   1.483 +In CTP, simplification of non-decidable domains is already an issue, as can be seem in the mail with subject ``simproc divide\_cancel\_factor produces error'' in the mailing-list \textit{isabelle-dev@mailbroy.informatik.tu-muenchen.de} from Thu, 15 Sep 2011 16:34:12 +0200
   1.484 +{%\footnotesize --- HILFT NICHTS
   1.485 +\begin{verbatim}
   1.486 +Hi everyone,
   1.487 +
   1.488 +in the following snippet, applying the simplifier causes an error:
   1.489 +
   1.490 +------------------------------------------
   1.491 +theory Scratch
   1.492 +  imports Complex_Main
   1.493 +begin
   1.494 +
   1.495 +lemma
   1.496 +  shows "(3 / 2) * ln n = ((6 * k * ln n) / n) * ((1 / 2 * n / k) / 2)"
   1.497 +apply simp
   1.498 +------------------------------------------
   1.499 +
   1.500 +outputs
   1.501 +
   1.502 +------------------------------------------
   1.503 +Proof failed.
   1.504 +(if n = 0 then 0 else 6 * (k * ln n) / 1) * 2 / (4 * k) =
   1.505 +2 * (Numeral1 * (if n = 0 then 0 else 6 * (k * ln n) / 1)) / (2 * (2 * k))
   1.506 + 1. n \not= Numeral0 \rightarrow k * (ln n * (2 * 6)) / (k * 4) = k * (ln n * 12) / (k * 4)
   1.507 +1 unsolved goal(s)!
   1.508 +The error(s) above occurred for the goal statement:
   1.509 +(if n = 0 then 0 else 6 * (k * ln n) / 1) * 2 / (4 * k) =
   1.510 +2 * (Numeral1 * (if n = 0 then 0 else 6 * (k * ln n) / 1)) / (2 * (2 * k))
   1.511 +------------------------------------------
   1.512 +\end{verbatim}
   1.513 +}
   1.514 +Mail ``Re: simproc divide\_cancel\_factor produces error'' on Fri, 16 Sep 2011 22:33:36 +0200
   1.515 +\begin{verbatim}
   1.516 +> > After the release, I'll have to think about doing a complete overhaul
   1.517 +> > of all of the cancellation simprocs.
   1.518 +You are very welcome to do so.  Before you start, call on me and I will
   1.519 +write down some ideas I had long ago (other may want to join, too).
   1.520 +\end{verbatim}
   1.521 +%WN: bist du schon angemeldet in den Mailing-Listen isabelle-users@ und isabelle-dev@ ? WENN NICHT, DANN WIRD ES H"OCHSTE ZEIT !!!
   1.522 +
   1.523 +\subsection{Open Issues with CAS-functionality in CTP}\label{cas-funct}
   1.524 +There is at least one effort explicitly dedicated to implement CAS-functionality in CTP \cite{cezary-phd}. %WN bitte unbedingt lesen (kann von mir in Papierform ausgeborgt werden) !!!
   1.525 +In this work three issues has been identified: partiality conditions, multi-valued functions and real numbers. These issues are addressed in the subsequent paragraphs, followed by a forth issue raised by \sisac.
   1.526 +
   1.527 +\paragraph{Partiality conditions}\label{part-cond} are introduced by partial functions or by conditional rewriting. An example of how the CAS-functionality \cite{cezary-phd} looks like is given on p.\pageref{fig:casproto}. 
   1.528 +\cite{cezary-phd} gives an introductory example (floated to p.\pageref{fig:casproto}) which will be referred to in the sequel.
   1.529 +\input{thol.tex}
   1.530 +%WN das nachfolgende Format-Problem l"osen wir sp"ater ...
   1.531 +\begin{figure}[hbt]
   1.532 +\begin{center}
   1.533 +\begin{holnb}
   1.534 +  In1 := vector [\&2; \&2] - vector [\&1; \&0] + vec 1
   1.535 + Out1 := vector [\&2; \&3]
   1.536 +  In2 := diff (diff (\Lam{}x. \&3 * sin (\&2 * x) +
   1.537 +         \&7 + exp (exp x)))
   1.538 + Out2 := \Lam{}x. exp x pow 2 * exp (exp x) +
   1.539 +         exp x * exp (exp x) + -- \&12 * sin (\&2 * x)
   1.540 +  In3 := N (exp (\&1)) 10
   1.541 + Out3 := #2.7182818284 + ... (exp (\&1)) 10 F
   1.542 +  In4 := x + \&1 - x / \&1 + \&7 * (y + x) pow 2
   1.543 + Out4 := \&7 * x pow 2 + \&14 * x * y + \&7 * y pow 2 + \&1
   1.544 +  In5 := sum (0,5) (\Lam{}x. \&x * \&x)
   1.545 + Out5 := \&30
   1.546 +  In6 := sqrt (x * x) assuming x > &1
   1.547 + Out6 := x
   1.548 +\end{holnb}
   1.549 +\end{center}
   1.550 +\caption{\label{fig:casproto}Example interaction with the prototype
   1.551 +  CAS-like input-response loop. For the user input given in the
   1.552 +  \texttt{In} lines, the system produces the output in \texttt{Out}
   1.553 +  lines together with HOL Light theorems that state the equality
   1.554 +  between the input and the output.}
   1.555 +\end{figure}
   1.556 +In lines {\tt In6, Out6} this examples shows how to reliably simplify $\sqrt{x}$. \cite{caspartial} %TODO
   1.557 +gives more details on handling side conditions in formalized partial functions.
   1.558 +
   1.559 +Analoguous to this example, cancellations (this thesis is concerned with) like
   1.560 +$$\frac{x^2-y^2}{x^2-x\cdot y}=\frac{x+y}{x}\;\;\;\;{\it assuming}\;x-y\not=0\land x\not=0$$
   1.561 +produce assumptions, $x-y\not=0, x\not=0$ here. Since the code produced in the framework of this thesis will be implemented in Isabelle's simplifier (outside this thesis), the presentation to the user will be determined by Isabelle and \sisac{} using the respective component of Isabelle. Also reliable handling of assumptions like $x-y\not=0, x\not=0$ is up to these systems.
   1.562 +
   1.563 +\paragraph{Multi-valued functions:}\label{multi-valued}
   1.564 +\cite{seeingroots,davenp-multival-10} discuss cases where CAS are error prone when dropping a branch of a multi-valued function~\footnote{``Multivalued \textit{function}'' is a misnomer, since the value of a function applied to a certain argument is unique by definition of function.}. Familiar examples are ...
   1.565 +%WN ... zur Erkl"arung ein paar Beispiele von http://en.wikipedia.org/wiki/Multivalued_function
   1.566 +
   1.567 +\paragraph{Real numbers} cannot be represented by numerals. In engineering applications, however, approximation by floating-point numbers are frequently useful. In CTP floating-point numbers must be handled rigorously as approximations. Already \cite{harr:thesis} introduced operations on real numerals accompanied by rigorous calculation of precision. \cite{russellphd} describes efficient implementation of infinite precision real numbers in Coq.
   1.568 +
   1.569 +\paragraph{All solutions for equations} must be guaranted, if equation solving is embedded within CTP. So, given an equation $f(x)=0$ and the set of solutions $S$ of this equation, we want to have both,
   1.570 +\begin{eqnarray}
   1.571 +   \exists x_s.\;x_s\in S &\Rightarrow& f(x_s) = 0 \\\label{is-solut}
   1.572 +  x_s\in S &\Leftarrow& \exists x_s.\;f(x_s) = 0    \label{all-solut}
   1.573 +\end{eqnarray}
   1.574 +\end{eqnarray}
   1.575 +where (\ref{all-solut}) ensures that $S$ contains {\em all} solutions of the equation. The \sisac-project has implemented a prototype of an equation solver~\footnote{See \textit{equations} in the hierarchy of specifications at http://www.ist.tugraz.at/projects/isac/www/kbase/pbl/index\_pbl.html}.
   1.576 +
   1.577 +There is demand for fullfledged equation solving in CTP, including equational systems and differential equations, because \sisac{} has a prototype of a CTP-based programming language calling CAS functions; and Lucas-Interpretation \cite{wn:lucas-interp-12} makes these functions accessible by single-stepping and ``next step guidance'', which would automatically generate a learning system for equation solving.
   1.578 +
   1.579  \section{Thesis structure}
   1.580  The proposed table of contents of the thesis on the chapter level is as follows:
   1.581  \begin{enumerate}
   1.582  	\item Introduction (2-3 pages)
   1.583  	\item Computer Algebra Systems (CAS) (5 - 7 pages)\\
   1.584  	Which different CAS exists and whats the focus of them.
   1.585 -	\item The \textit{ISAC}-Project (5 - 7 pages)\\
   1.586 -	This chapter will describe the \textit{ISAC}-Project and the goals of the project.
   1.587 +	\item The \sisac-Project (5 - 7 pages)\\
   1.588 +	This chapter will describe the \sisac-Project and the goals of the project.
   1.589  	\item Univariate Polynomials (15-20 pages)\\
   1.590  	This chapter will describe different Algorithms for univariate polynomials, with different coefficients.
   1.591  	\item Multivariate Polynomials (20-25 pages)\\
   1.592  	This chapter will describe different Algorithms for multivariate polynomials,  with different coefficients
   1.593 -	\item Functional programing and SML(2-5 pages)\\
   1.594 -	The basic idea of this programing languages.
   1.595 -	\item Implementation in \textit{ISAC}-Project (15-20 pages)
   1.596 +	\item Functional programming and SML(2-5 pages)\\
   1.597 +	The basic idea of this programming languages.
   1.598 +	\item Implimentation in \sisac-Project (15-20 pages)
   1.599  	\item Conclusion (2-3 pages)
   1.600  \end{enumerate}
   1.601  %\newpage
   1.602  
   1.603 -\section{Time line}
   1.604 +\section{Timeline}
   1.605  %Werd nie fertig.\\
   1.606  \begin{center}
   1.607  		\begin{tabular}{|l|l|l|}
   1.608  		\hline
   1.609  			 \textbf{Time}&\textbf{Thesis}&\textbf{Project}\\
   1.610  			 \hline
   1.611 -			 & Functional programing & Learning the basics and the idea\\
   1.612 -			 & & of functional programing\\
   1.613 +			 & Functional programming & Learning the basics and the idea\\
   1.614 +			 & & of funcional programming\\
   1.615  			 \hline
   1.616  			 & Different CAS & Can they handle the problem \\
   1.617  			 & &and which algorithm do they use?\\ \hline
   1.618 @@ -222,28 +441,57 @@
   1.619  			 & & for univariate Polynomials \\ \hline
   1.620  		   & Multivariate Polynomials &  Implementation of the Algorithm\\
   1.621  			 & & for multivariate Polynomials \\ \hline 
   1.622 -		   & The Isac-Project &\\ \hline
   1.623 +		   & The \sisac-Project &\\ \hline
   1.624  		   & Conclusion and Introduction & Find good examples for testing\\
   1.625  			\hline
   1.626  		\end{tabular}
   1.627  	\end{center}
   1.628  
   1.629 -\newpage
   1.630 +%WN oben an passender stelle einf"ugen
   1.631 +\cite{einf-funct-progr} \cite{Winkler:96}
   1.632  		
   1.633 -\section{Bibliography}
   1.634 -%mindestens 10
   1.635 -\begin{enumerate}
   1.636 - \item Bird/Wadler, \textit{Einführung in die funktionale Programmierung}, Carl Hanser and Prentice-Hall International, 1992
   1.637 - \item Franz Winkler, \textit{Polynomial Algorithms in Computer Algebra}, Springer,1996
   1.638 - \item %M. Mignotte, \textit{An inequality about factors of polynomial}
   1.639 - \item %M. Mignotte, \textit{Some useful bounds}
   1.640 - \item %W. S. Brown and J. F. Traub. \textit{On euclid's algorithm and the theory of subresultans}, Journal of the ACM (JACM), 1971
   1.641 - \item %Bruno Buchberger, \textit{Algorhimic mathematics: Problem types, data types, algorithm types}, Lecture notes, RISC Jku A-4040 Linz, 1982
   1.642 - 
   1.643 - \item %Tateaki Sasaki and Masayuki Suzuki, \textit{Thre new algorithms for multivariate polynomial GCD}, J. Symbolic Combutation, 1992
   1.644 - \item
   1.645 - \item
   1.646 - \item
   1.647 -\end{enumerate} 
   1.648 +		
   1.649 +\bibliography{references}
   1.650 +%\section{Bibliography}
   1.651 +%%mindestens 10
   1.652 +%\begin{enumerate}
   1.653 +% \item Bird/Wadler, \textit{Einführung in die funktionale Programmierung}, Carl Hanser and Prentice-Hall International, 1992
   1.654 +% \item Franz Winkler, \textit{Polynomial Algorithms in Computer Algebra}, Springer,1996
   1.655 +% \item %M. Mignotte, \textit{An inequality about factors of polynomial}
   1.656 +% \item %M. Mignotte, \textit{Some useful bounds}
   1.657 +% \item %W. S. Brown and J. F. Traub. \textit{On euclid's algorithm and the theory of subresultans}, Journal of the ACM (JACM), 1971
   1.658 +% \item %Bruno Buchberger, \textit{Algorhimic mathematics: Problem types, data types, algorithm types}, Lecture notes, RISC Jku A-4040 Linz, 1982
   1.659 +% 
   1.660 +% \item %Tateaki Sasaki and Masayuki Suzuki, \textit{Thre new algorithms for multivariate polynomial GCD}, J. Symbolic Combutation, 1992
   1.661 +% \item
   1.662 +% \item
   1.663 +% \item
   1.664 +%\end{enumerate} 
   1.665  
   1.666 -\end{document}
   1.667 \ No newline at end of file
   1.668 +\end{document}
   1.669 +
   1.670 +WN110916 grep-ing through Isabelle code:
   1.671 +
   1.672 +neuper@neuper:/usr/local/isabisac/src$ find -name "*umeral*"
   1.673 +./HOL/ex/Numeral.thy
   1.674 +./HOL/Tools/nat_numeral_simprocs.ML
   1.675 +./HOL/Tools/numeral_syntax.ML
   1.676 +./HOL/Tools/numeral.ML
   1.677 +./HOL/Tools/numeral_simprocs.ML
   1.678 +./HOL/Matrix/ComputeNumeral.thy
   1.679 +./HOL/Library/Numeral_Type.thy
   1.680 +./HOL/Numeral_Simprocs.thy
   1.681 +./HOL/Import/HOL/numeral.imp
   1.682 +./HOL/Code_Numeral.thy
   1.683 +./HOL/Nat_Numeral.thy
   1.684 +./ZF/Tools/numeral_syntax.ML
   1.685 +./Provers/Arith/cancel_numeral_factor.ML
   1.686 +./Provers/Arith/cancel_numerals.ML
   1.687 +./Provers/Arith/combine_numerals.ML
   1.688 +
   1.689 +neuper@neuper:/usr/local/isabisac/src$ find -name "*ancel*"
   1.690 +./HOL/Tools/abel_cancel.ML                 
   1.691 +./Provers/Arith/cancel_div_mod.ML
   1.692 +./Provers/Arith/cancel_numeral_factor.ML  Paulson 2000 !!!
   1.693 +./Provers/Arith/cancel_sums.ML            
   1.694 +./Provers/Arith/cancel_numerals.ML        Paulson 2000