products/sources/formale sprachen/PVS/structures image not shown  

Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: runs.pvs   Sprache: PVS

Original von: PVS©

% Taken from Vlad Rusu, Verifying a Sliding Window Protocol using PVS. FORTE 2001: 251-268.
runs[State      : TYPE
     initial    : PRED[State], 
     transition : PRED[[State, State]]] : THEORY

BEGIN

  % Runs are infinite sequences of transition-related states,  
  % starting in an initial state

  run_fragment: pred[sequence[State]] =  
    {r : sequence[State] | FORALL (n : nat): transition(r(n),r(n+1))}

  run : pred[(run_fragment)] =  {r : (run_fragment) | initial(r(0))}

  r: VAR (run)
  p :VAR pred[[State]]  
  % The first parameter is the current state
  % The second parameter is the initial state

  invariant(p) : bool = FORALL (r : (run), n:nat ): p(r(n))

  invariant_rule : THEOREM
    (FORALL (r : (run)) : p(r(0)) AND 
      FORALL (n : nat) : p(r(n)) IMPLIES p(r(n+1)))
     IMPLIES invariant(p)

END runs




¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤





Download des
Quellennavigators
Download des
sprechenden Kalenders

in der Quellcodebibliothek suchen




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 ist noch experimentell.


Bot Zugriff