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

Benutzer

Quelle  XVcgEx.thy

  Sprache: Isabelle
 

(*
    Author:      Norbert Schirmer
    Maintainer:  Norbert Schirmer, norbert.schirmer at web de

Copyright (C) 2006-2008 Norbert Schirmer
*)


section "Examples for Parallel Assignments"

theory XVcgEx
imports "../XVcg"

begin

record "globals" =
  "G_'"::"nat"
  "H_'"::"nat"

record 'g vars = "'g state" +
  A_' :: nat
  B_' :: nat
  C_' :: nat
  I_' :: nat
  M_' :: nat
  N_' :: nat
  R_' :: nat
  S_' :: nat
  Arr_' :: "nat list"
  Abr_':: string

term "BASIC
         🍋A :== x,
         🍋B :== y
      END"

term "BASIC
         🍋G :== 🍋H,
         🍋H :== 🍋G
      END"

term "BASIC
        LET (x,y) = (🍋A,b);
            z = 🍋B
        IN 🍋A :== x,
           🍋G :== 🍋A + y + z
      END"


lemma  {🍋A = 0}
      {🍋A < 0} BASIC
       LET (a,b,c) = foo 🍋A
       IN
            🍋A :== a,
            🍋B :== b,
            🍋C :== c
      END
      {🍋A = x 🍋B = y 🍋C = c}"
apply vcg
oops

lemma  {🍋A = 0}
      {🍋A < 0} BASIC
       LET (a,b,c) = foo 🍋A
       IN
            🍋A :== a,
            🍋G :== b + 🍋B,
            🍋H :== c
      END
      {🍋A = x 🍋G = y 🍋H = c}"
apply vcg
oops

definition foo:: "nat ==> (nat × nat × nat)"
  where "foo n = (n,n+1,n+2)"

lemma  {🍋A = 0}
      {🍋A < 0} BASIC
       LET (a,b,c) = foo 🍋A
       IN
            🍋A :== a,
            🍋G :== b + 🍋B,
            🍋H :== c
      END
      {🍋A = x 🍋G = y 🍋H = c}"
apply (vcg add: foo_def snd_conv fst_conv)
oops

end

Messung V0.5 in Prozent
C=95 H=98 G=96

¤ Dauer der Verarbeitung: 0.10 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