next up previous
Next: About this document ... Up: FGDI3-Formelblaetter Previous: Korrektheit Reaktiver Systeme

Korrektheit Sequentieller Systeme

Alle volgenden Sysmbole müssen eindeutig zuordbar sein $ \Leftrightarrow$ alle Mengen sind disjunkt. Bei $ \subset$ ist die gleichheit nicht ausgeschlossen

Sorten
$ S=\left(s_{1},\ldots,s_{n}\right)$ wie Liste von Datentypen
Signatur
$ \Sigma=\left(\Sigma_{ws}\right)_{ws\in S^{*}S}$ Angabe über Fuktionssymbole mit dazugehörigen Stelligkeiten und Sorten.
0-stellig $ =$ Konstante
Variablensymbole
$ \mathcal{V}=\left(\mathcal{V}_{s}\right)_{s\in S}$
Terme
$ \mathcal{T}\left(\Sigma,\mathcal{V}\right)\subset\left(\mathcal{V}\cup\Sigma\right)^{*}$ Menge der syntaktisch korrekten Terme aus den angegebenen Funktionen und Variablen
Grundterme
$ \mathcal{T}\left(\Sigma\right)$ Terme ohne Variablen
sensible
Signatur hat von jeder Sorte mindestens ein Konstantensymbol
$ \Sigma$-Algebra
ist paar $ A=\left(\mathcal{A},\alpha\right)$ mit

Trägermengen
$ \mathcal{A}=\left(\mathcal{A}_{s}\right)_{s\in S}$
Deutungsfunktionen
$ \alpha=\left(\alpha_{f}\right)_{f\in\Sigma}$ die Signatur von $ f$ respektiert
Deutung
$ A:\mathcal{T}\left(\Sigma\right)\rightarrow_{S}\mathcal{A}$ bei gegebener $ \Sigma$-Algebra $ A$
Formeln
$ \mathcal{F}\left(\Sigma,\mathcal{V}\right)\subset\left(\mathcal{V}\cup\Sigma\cup\left\{ \equiv,\neg,\wedge,\forall\right\} \right)^{*}$
Atomare Formeln
$ \mathcal{AT}\left(\Sigma,\mathcal{V}\right)\ni t_{1}\equiv t_{2}$ mit $ t_{1},t_{2}\in\mathcal{T}\left(\Sigma,\mathcal{V}\right)$
pränexe Normalform
ist eine Formel $ \phi$ wenn alle Quantoren $ \left(\forall,\exists\right)$ ganz links stehen.
universelle Formeln
wenn pränex und alle Quantoren $ \forall$
$ \mathcal{F}_{\forall}\left(\Sigma,\mathcal{V}\right)$ ist Menge aller solcher Formeln über geg. Signatur
Gleichung
siehe Atomate Formel $ \mathcal{E}\left(\Sigma,\mathcal{V}\right)=\mathcal{AT}\left(\Sigma,\mathcal{V}\right)$
universelle Gleichung
universelle Formel, die hinter den Quantoren nur nich genau ein $ =$ steht
$ \mathcal{E}_{\forall}\left(\Sigma,\mathcal{V}\right)$ ist die Menge aller solcher universelller Geichungen
Allabschluss
für ein $ e\in\mathcal{E}\left(\Sigma,\mathcal{V}\right)$ ist $ \forall e$ die Gleichung, in der alle freien Variablen abquantifiziert wurden. Analog für Formelmengen.
$ \Sigma$-Interpretation
ist ein Paar $ I=\left(A,\mathfrak{a}\right)$ mit der $ \Sigma$-Algebra $ A$ und $ \mathfrak{a}:\mathcal{V}\rightarrow_{S}\mathcal{A}$.
Deutung
von Formel: $ \alpha$ auf Funktionen und $ \mathfrak{a}$ auf Variablen rekursiv anwenden. Atomare Formeln liefern bool. Dieses mit Boolschen Funktionen verknüpfen.
$ I\models_{Alg\left(\Sigma\right)}\phi$ $ \Leftrightarrow$ die $ \Sigma$-Interpretation $ I$ erfüllt eine Formel $ \phi\in\mathcal{F}\left(\Sigma,\mathcal{V}\right)$ gdw. die Auswertung true liefert.

erfüllbar
ist $ \phi$ gdw. es einer $ \Sigma$-Interpreation $ I$ gibt die Formel $ \phi$ erfüllt
allgemeingültig
ist $ \phi$ gdw. jede $ \Sigma$-Interpreation $ I$ die Formel $ \phi$ erfüllt
folgt
$ \Phi\models_{\mathcal{F}\left(\Sigma,\mathcal{V}\right)}\phi$ $ \Leftrightarrow$ eine Formel $ \phi$ folgt aus einer Formelmenge $ \Phi$, gdw. alle Interpretationen die $ \Phi$ wahr machen, auch $ \phi$ wahr machen.
Folgerungen
$ \Phi^{\models\mathcal{F}\left(\Sigma,\mathcal{V}\right)}$ ist die Menge aller Folgerungen aus $ \Phi$

allgemeingültig
wenn $ \emptyset\models_{\mathcal{F}\left(\Sigma,\mathcal{V}\right)}\phi$
äquivalent
$ \phi_{1}\approx\phi_{2}$ gdw. $ \phi_{1}\leftrightarrow\phi_{2}$ allgeimeingültig
Theorie
$ Th\left(A\right):=\left\{ \phi\in\mathcal{F}_{g}\left(\Sigma,\mathcal{V}\right)\vert A\models\phi\right\} $ zu gegebener $ \Sigma$-Algebra $ A$
Substitution
$ \sigma:\mathcal{V}\rightarrow_{S}\mathcal{T}\left(\Sigma,\mathcal{V}\right)$
Grundsubstitution
$ \sigma\left(x\right)\in\mathcal{T}\left(\Sigma,\mathcal{V}\right)\cap\left\{ x\right\} $ für alle $ x\in\mathcal{V}$
Substitutionlemma
$ \mathfrak{a}\left(\sigma\left(t\right)\right)=\mathfrak{a}\left[x_{1}/\mathfra...
...t(t_{1}\right),\ldots,x_{n}/\mathfrak{a}\left(t_{n}\right)\right]\left(t\right)$
Klasse der $ \Sigma$-Algebren
$ \textrm{Alg}_{\Sigma}$
$ \Sigma$-Homomorphismus
Für $ A,B$ $ \Sigma$-Algebren ist $ h:\mathcal{A}\rightarrow_{S}\mathcal{B}$ ein Homomorphismus wenn

$\displaystyle h_{s}\left(\alpha_{f}\left(a_{1},\ldots,a_{n}\right)\right)=\beta_{f}\left(h_{s_{1}}\left(a_{1}\right),\ldots,h_{s_{n}}\left(a_{n}\right)\right)$

Äquivalenzrelation
ist $ \sim\in M\times M$ wenn

reflexiv
$ m\sim m$
symmetrisch
$ m\sim n\Leftrightarrow n\sim m$
transitiv
$ m\sim n\wedge n\sim k\Rightarrow m\sim k$
Äquivalenzklasse
$ \left[m\right]_{\sim}=\left\{ n\in M\vert n\sim m\right\} \subset2^{M}$
Quotientenmenge
$ M/_{\sim}=\left\{ \left[m\right]_{\sim}\in2^{M}\vert m\in M\right\} $
$ \Sigma$-Isomorphismus
ist eine bijektiver Homomorphismus
Abstrakter Datentyp
für eine Signatur $ \Sigma$ ist eine Klasse $ \textrm{C}\subset\textrm{Alg}_{\Sigma}$ von $ \Sigma$-Algebren, die unter Isomorphie abgeschlossen ist, d.h. es gilt für alle $ A,B\in\textrm{Alg}_{\Sigma}$
initial
ist eine $ \Sigma$-Algebra $ A\in\textrm{Alg}_{\Sigma}$ gdw. gilt: Für jede $ \Sigma$-Algebra $ B$ existiert genau ein $ \Sigma$-Homomorphismus von $ A$ nach $ B$.
Termalgebren
Sei $ \Sigma$ eine Signatur bzgl. einer Sortenmenge $ S$. Dann ist die Termalgebra $ T_{\Sigma}=\left(\mathcal{T}\left(\Sigma\right),\tau\right)$ definiert durch

$\displaystyle \tau_{f}\left(t_{1},\ldots,t_{n}\right):=ft_{1}\ldots t_{n}$

Kongruenzrelation
ist $ \approx\subset\left(\mathcal{A}_{s}\times\mathcal{A}_{s}\right)_{s\in S}$ wenn:
Quotientenalgebra
ist eine $ \Sigma$-Algebra zu gegebenen $ A$ und $ \approx$: $ A/_{\approx}:=\left(\mathcal{A}/_{\approx},\tilde{\tilde{\alpha}}\right)$ mit

$\displaystyle \tilde{\tilde{\alpha}}_{f}\left(\left[a_{1}\right]_{\approx_{s_{1...
...}}\right):=\left[\alpha_{f}\left(a_{1},\ldots,a_{n}\right)\right]_{\approx_{s}}$

Quotiententermalgebra
Für eine $ \Sigma$-Algebra $ A$ sei $ \approx_{A}\subset\mathcal{T}\left(\Sigma\right)\times\mathcal{T}\left(\Sigma\right)$ für alle $ t_{1},t_{2}\in\mathcal{T}\left(\Sigma\right)$ definiert durch

$\displaystyle t_{1}\approx_{A}t_{2}\Leftrightarrow A\left(t_{1}\right)=A\left(t_{2}\right)$

die Quotiententermalgebra von $ A$ ist dann definiert als $ T_{\Sigma}/_{\approx_{A}}=\left(\mathcal{T}\left(\Sigma\right)/_{\approx_{A}},{{\approx_{A}\atop \tau}}\right)$
kanonische Termalgebra
heißt $ A\left(\mathcal{A},\alpha\right)$ gdw.: $ \mathcal{A}\subset\mathcal{T}\left(\Sigma\right)$ und $ \forall t\in A:A\left(t\right)=t$
Teilsignatur
ist eine Signatur, bei der einige Funktionssymbole weggleassen wurden
Erzeugte $ \Sigma$-Algebra
Seien $ \Sigma^{c}$ und $ \Sigma$ $ S$-Signaturen mit $ \Sigma^{c}\subset\Sigma$ und sei $ A=\left(\mathcal{A},\alpha\right)$ eine $ \Sigma$-Algebra. Dann ist $ A$ durch $ \Sigma^{c}$ erzeugt gdw. gilt: $ \forall s\in S,a\in\mathcal{A}_{s}:\exists q\in\mathcal{T}\left(\Sigma_{s}^{c}\right):a=A\left(q\right)$
frei
erzeugt wenn zusätzlich gilt $ \forall s\in S,q_{1},q_{2}\in\mathcal{T}\left(\Sigma_{s}^{c}\right):A\left(q_{1}\right)=A\left(q_{2}\right)\Rightarrow q_{1}=q_{2}$
$ \textrm{Gen}_{\Sigma}\subset\textrm{Alg}_{\Sigma}$ bezeichnet die Klasse aller erzeugten $ \Sigma$-Algebren
Redukt
ist Reduzierte Algebra zu kleinerer Signatur
Expansion
ist vollständige Algebra zu großer Signatur
Kongruenz aus Relation
Sei $ A$ eine $ \Sigma$-Algebra, und $ R=\subset\left(\mathcal{A}_{s}\times\mathcal{A}_{s}\right)$. Es existiert eine kleinste Kongruenzrelation $ \approx_{R}$ die $ R$ noch enthält
Kongruenz aus Gleichung
Für $ E\subset\mathcal{E}\left(\Sigma,\mathcal{V}\right)$ ist
$\displaystyle R_{E}:$ $\displaystyle =$ $\displaystyle \left\{ \left(\theta\left(l\right),\theta\left(r\right)\right)\in\mathcal{T}\left(\Sigma\right)\times\mathcal{T}\left(\Sigma\right)\vert\right.$  
    $\displaystyle \left.l\equiv r\in E\wedge\theta\textrm{ ist Substitution}\right\}$  

und $ \approx_{E}:=\approx_{R_{E}}$
Vorgehen
Gegeben sei $ S$, $ \Sigma^{c}\subset\Sigma$ und $ E\subset\mathcal{E}\left(\Sigma,\mathcal{V}\right)$, so dass $ T_{\Sigma/_{\approx_{E}}}$ eine durch $ \Sigma^{c}$ freu erzeugte Quotiententermalgebra ist.
structure
struct <= $ cons_{1}\left(sel_{1,1}:sct_{1,1},\ldots,sel_{1,n_{1}}:sct_{1,n_{1}}\right),\ldots$
Axiome
$ EQ_{struct}$
function
$ proc\left(x_{1}:struct_{1},\ldots,x_{k}:struct_{k}\right):struct<=R_{proc}$
konstruktive Spec.
$ S$ ist eine Folge $ \left\langle D_{0},\ldots,D_{n}\right\rangle $ von Datenstruktur- und Prozedurdefinitionen.
zulässige Spec.
Eine Konstruktive Spezifikation $ S=\left\langle D_{0},\ldots,D_{n}\right\rangle $ ist zulässig, gdw. die $ \Sigma\left(n\right)$-Algebra $ T_{\Sigma\left(n\right)}/_{\approx_{E_{n}}}$ frei erzeugt durch $ \Sigma\left(n\right)^{c}$ ist
prozedur Relation
für gegebenes $ proc$ ist

$\displaystyle >_{proc}\subset\left(\mathcal{T}\left(\Sigma^{c}\right)_{struct_{1}}\times\ldots\times\mathcal{T}\left(\Sigma^{c}\right)_{struct_{n}}\right)^{2}$

$ \left(q_{1},\ldots,q_{n}\right)>_{proc}\left(q_{1}',\ldots,q_{n}'\right)$ gdw. beim Aufruf von $ proc\left(q_{1},\ldots,q_{n}\right)$ wird $ proc\left(q_{1}',\ldots,q_{n}'\right)$ rekursiv aufgerufen
Fundierte Relation
Eine Relation $ \succ\subset M\times M$ heißt fundiert gdw. es gibt keine unendliche Folgen $ m_{0},m_{1},\ldots$ mit $ m_{i}\succ m_{i+1}$ für alle $ i\in\mathbb{N}$


next up previous
Next: About this document ... Up: FGDI3-Formelblaetter Previous: Korrektheit Reaktiver Systeme
Marco Möller 19:09:34 06.03.2006