Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  utp_sym_eval.thy

  Sprache: Isabelle
 

section  Symbolic Evaluation of Relational Programs

theory utp_sym_eval
  imports utp_rel_opsem
begin

text  The following operator applies a variable context $\Gamma$ as an assignment, and composes
 it with a relation $P$ for the purposes of evaluation.


definition utp_sym_eval :: "'s usubst ==> 's hrel ==> 's hrel" (infixr  55where
[upred_defs]: "utp_sym_eval Γ P = (Γa ;; P)"

named_theorems symeval

lemma seq_symeval [symeval]:  P ;; Q = (Γ P) ;; Q"
  by (rel_auto)

lemma assigns_symeval [symeval]:  σa = (σ Γ) II"
  by (rel_auto)

lemma term_symeval [symeval]: "(Γ II) ;; P = Γ P"
  by (rel_auto)

lemma if_true_symeval [symeval]: "[ Γ b = true ] ==> Γ (P b r Q) = Γ P"
  by (simp add: utp_sym_eval_def usubst assigns_r_comp)

lemma if_false_symeval [symeval]: "[ Γ b = false ] ==> Γ (P b r Q) = Γ Q"
  by (simp add: utp_sym_eval_def usubst assigns_r_comp)

lemma while_true_symeval [symeval]: "[ Γ b = true ] ==> Γ while b do P od = Γ (P ;; while b do P od)"
  by (subst while_unfold, simp add: symeval)

lemma while_false_symeval [symeval]: "[ Γ b = false ] ==> Γ while b do P od = Γ II"
  by (subst while_unfold, simp add: symeval)

lemma while_inv_true_symeval [symeval]: "[ Γ b = true ] ==> Γ while b invr S do P od = Γ (P ;; while b do P od)"
  by (metis while_inv_def while_true_symeval)

lemma while_inv_false_symeval [symeval]: "[ Γ b = false ] ==> Γ while b invr S do P od = Γ II"
  by (metis while_false_symeval while_inv_def)

method sym_eval = (simp add: symeval usubst lit_simps[THEN sym]), (simp del: One_nat_def add: One_nat_def[THEN sym])?

syntax
  "_terminated" :: "logic ==> logic" (terminated: _ [999999)

translations
  "terminated: Γ" ==  II"

end

Messung V0.5 in Prozent
C=79 H=98 G=88

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge