Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/extensions/zalouser/src/   (Netbeans IDE Version 28©)  Datei vom 26.3.2026 mit Größe 11 kB image not shown  

Quellverzeichnis  IMP_3.thy   Sprache: Isabelle

 

theory IMP_3
imports "HOL-Library.Predicate_Compile_Quickcheck"
begin

subsection ‹IMP›

text ‹
 In this example, the state is one integer variable and the commands are Skip, Ass, Seq, IF, and While.
 
›

type_synonym var = unit
type_synonym state = int

datatype com =
  Skip |
  Ass var "int" |
  Seq com com |
  IF "state list" com com |
  While "state list" com

inductive exec :: "com => state => state => bool" where
  "exec Skip s s" |
  "exec (Ass x e) s e" |
  "exec c1 s1 s2 ==> exec c2 s2 s3 ==> exec (Seq c1 c2) s1 s3" |
  "s ∈ set b ==> exec c1 s t ==> exec (IF b c1 c2) s t" |
  "s ∉ set b ==> exec c2 s t ==> exec (IF b c1 c2) s t" |
  "s ∉ set b ==> exec (While b c) s s" |
  "s1 ∈ set b ==> exec c s1 s2 ==> exec (While b c) s2 s3 ==> exec (While b c) s1 s3"

lemma
  "exec c s s' ==> exec (Seq c c) s s'"
  quickcheck[tester = smart_exhaustive, size=2, iterations=100, quiet = false, expect = counterexample]
oops


end

Messung V0.5 in Prozent
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-09-29) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.