25.11.2014 Aufrufe

Verifikation reaktiver Systeme - Universität Kaiserslautern

Verifikation reaktiver Systeme - Universität Kaiserslautern

Verifikation reaktiver Systeme - Universität Kaiserslautern

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

223<br />

– Modus ponens:<br />

Γ 1 ⊢ t 1 ⇒ t 2 Γ 2 ⊢ t 1<br />

Γ 1 ∪ Γ 2 ⊢ t 2<br />

The deductive system of HOL is shown to be sound for the set theoretic semantics<br />

of HOL described in the previous section. Each mechanism of it guarantees to<br />

preserve the property of possessing a model. Thus, theories built up from the<br />

initial HOL theory (which does possess a model) using these mechanisms are<br />

guaranteed to be consistent.<br />

HOL notation Standard notation Description<br />

Truth T ⊤ true<br />

Falsity F ⊥ false<br />

Negation ~t ¬t not t<br />

Disjunction t 1\/t 2 t 1 ∨ t 2 t 1 or t 2<br />

Conjunction t 1/\t 2 t 1 ∧ t 2 t 1 and t 2<br />

Implication t 1==>t 2 t 1 ⇒ t 2 t 1 implies t 2<br />

Equality t 1=t 2 t 1 = t 2 t 1 equals t 2<br />

∀-quantification !x.t ∀x. t for all x : t<br />

∃-quantification ?x.t ∃x. t for some x : t<br />

ε-term @x.t εx. t an x such that: t<br />

Table 1. Terms of the HOL Logic [6]<br />

The theory INIT is the initial theory of the HOL logic. It introduces the<br />

logical operators shown in Table 1 and contains the five axioms that the HOL<br />

system is based on.<br />

BOOL_CASES_AX |- !t. (t = T) \/ (t = F)<br />

IMP_ANTISYM_AX |- !t1 t2. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 = t2)<br />

ETA_AX<br />

|- !t. (\x. t x) = t<br />

SELECT_AX |- !P:’a->bool x. P x ==> P($@ P)<br />

INFINITY_AX |- ?f:ind->ind. ONE_ONE f /\ ~(ONTO f)<br />

where ONE_ONE and ONTO aredefinedasfollows<br />

ONE_ONE_DEF |- ONE_ONE f = (!x1 x2. (f x1 = f x2) ==> (x1 = x2))<br />

ONTO_DEF |- ONTO f = (!y. ?x. y = f x)<br />

In HOL, a formula is represented by a then ML type term whose HOL type<br />

is bool. It can be constructed by the given constructors. Unlike this, a theorem<br />

(ML type thm) does not have a primitive constructor function. In this way, the<br />

ML type asserts that theorems are not arbitrarily and unrecordedly constructed,<br />

compromising of the consistency of the logic.<br />

2.3 Usage<br />

As already stated in the introduction, the HOL system provides an environment<br />

for writing specifications and creating formal proofs of properties.

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!