(* Title:Strong-Security Authors:SylviaGrewe,AlexanderLux,HeikoMantel,JensSauer
*) theory MWLf importsTypes begin
― ‹SYNTAX›
― ‹Commands for the multi-threaded while language with fork (to instantiate 'com)› datatype ('exp, 'id) MWLfCom
= Skip (‹skip›)
| Assign "'id""'exp"
(‹_:=_› [70,70] 70)
locale MWLf_semantics = fixes E :: "('exp, 'id, 'val) Evalfunction" and BMap :: "'val ==> bool" begin
― ‹steps semantics, set of deterministic steps from single threads to either single threads or thread pools› inductive_set
MWLfSteps_det :: "('exp, 'id, 'val, ('exp, 'id) MWLfCom) TSteps" and MWLfSteps_det' :: "('exp, 'id, 'val, ('exp, 'id) MWLfCom) TSteps_curry"
(‹(1⟨_,/_⟩) →/ (1⟨_,/_⟩)› [0,0,0,0] 81) where "⟨c1,m1⟩→⟨c2,m2⟩≡ ((c1,m1),(c2,m2)) ∈ MWLfSteps_det" |
skip: "⟨skip,m⟩→⟨[],m⟩" |
assign: "(E e m) = v ==>⟨x := e,m⟩→⟨[],m(x := v)⟩" |
seq1: "⟨rangle> →⟨[],m'⟩==>⟨ seq2: "⟨c1,m⟩→⟨c1'#V,m'⟩==>⟨c1;c2,m⟩→⟨(c1';c2)#V,m'⟩" | iftrue: "BMap (E b m) = True ==> ⟨if b then c1 else c2 fi,m⟩→⟨[c1],m⟩" | iffalse: "BMap (E b m) = False ==> ⟨if b then c1 else c2 fi,m⟩→⟨[c2],m⟩" | whiletrue: "BMap (E b m) = True ==> ⟨while b do c od,m⟩→⟨[c;(while b do c od)],m⟩" | whilefalse: "BMap (E b m) = False ==> ⟨while b do c od,m⟩→⟨[],m⟩" | fork: "⟨fork c V,m⟩→⟨c#V,m⟩"
inductive_cases MWLfSteps_det_cases:
"⟨skip,m⟩→⟨W,m'⟩"
"⟨x := e,m⟩→⟨W,m'⟩" <gle> →m'\rangle" "⟨if b then c1 else c2 fi,m\rangle <rightarw> \<<langle
"⟨while b do c od,m⟩→⟨W,m'⟩"
"⟨fork c V,m⟩→⟨W,m'⟩"
\<comment> ‹non-deterministic, possibilistic system step (added for intuition, not used in the proofs)› inductive_set MWLfSteps_ndet :: "('exp, 'id, 'val, ('exp,'id) MWLfCom) TPSteps" and MWLfSteps_ndet' :: "('exp, 'id, 'val, ('exp,'id) MWLfCom) TPSteps_curry" (‹(1⟨_,/_⟩) ==>/ (1⟨_,/_⟩)› [0,0,0,0] 81) where
"⟨V1,m1⟩==>⟨V2,m2⟩≡ ((V1,m1),(V2,m2)) ∈ MWLfSteps_ndet" |
"⟨ci,m⟩→⟨c,m'⟩==>⟨Vf @ [ci] @ Va,m⟩==>⟨Vf @ c @ Va,m'⟩"
end
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.