Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/Simpl/   (Sammlung formaler Beweise Version 2026-5©)  Datei vom 29.4.2026 mit Grâße 2 kB image not shown  

Quelle  SyntaxTest.thy

  Sprache: Isabelle
 

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

Copyright (C) 2006-2008 Norbert Schirmer
*)


(*<*)
theory SyntaxTest imports HeapList Vcg begin

record "globals" =
 alloc_' :: "ref list"
 free_':: nat
 GA_' :: "ref list list"
 next_' :: "ref ==> ref"
 cont_' :: "ref ==> nat"

record 'g vars = "'g state" +
  A_' :: "nat list"
  AA_' :: "nat list list"
  I_' :: nat
  M_' :: nat
  N_' :: nat
  R_' :: int
  S_' :: int
  B_' :: bool
  Abr_':: string
  p_' :: ref
  q_' :: ref

procedures Foo (p,I|p) = "πŸ‹p :== πŸ‹p"

term "πŸ‹I :==g 3 - 1"
term "πŸ‹R :==g 3 - 1"
term "πŸ‹I :==g πŸ‹A!i"
term " πŸ‹A!i :== j"
term " πŸ‹AA :== πŸ‹AA!![i,j]"
term " πŸ‹AA!![i,j] :== πŸ‹AA"
term "πŸ‹A!i :==g j"
term "πŸ‹p :==g πŸ‹GA!i!j"
term "πŸ‹GA!i!j :==g πŸ‹p"
term "πŸ‹p :==g πŸ‹p πŸ‹next"
term "πŸ‹p πŸ‹next :==g πŸ‹p"
term "πŸ‹p πŸ‹next πŸ‹next :==g πŸ‹p"
term "πŸ‹p :== NEW sz [πŸ‹next :== Null,πŸ‹cont :== 0]"
term "πŸ‹pπŸ‹next :==g NEW sz [πŸ‹next :== Null,πŸ‹cont :== 0]"
term "πŸ‹p :== NNEW sz [πŸ‹next :== Null,πŸ‹cont :== 0]"
term "πŸ‹pπŸ‹next :==g NNEW sz [πŸ‹next :== Null,πŸ‹cont :== 0]"
term "πŸ‹B :==g πŸ‹N + 1 < 0 ∧ πŸ‹M + πŸ‹N < n"
term "πŸ‹B :==g πŸ‹N + 1 < 0 ∨ πŸ‹M + πŸ‹N < n"
term "πŸ‹I :==g πŸ‹N mod n"
term "πŸ‹I :==g πŸ‹N div n"
term "πŸ‹R :==g πŸ‹R div n"
term "πŸ‹R :==g πŸ‹R mod n"
term "πŸ‹R :==g πŸ‹R * n"
term "πŸ‹I :==g πŸ‹I - πŸ‹N"
term "πŸ‹R :==g πŸ‹R - πŸ‹S"
term "πŸ‹R :==g int πŸ‹I"
term "πŸ‹I :==g nat πŸ‹R"
term "πŸ‹R :==g -πŸ‹R"
term "IFg πŸ‹A!i < πŸ‹N THEN c1 ELSE c2 FI"
term "WHILEg πŸ‹A!i < πŸ‹N DO c OD"
term "WHILEg πŸ‹A!i < πŸ‹N INV {foo} DO c OD"
term "WHILEg πŸ‹A!i < πŸ‹N INV {foo} VAR bar x DO c OD"
term "WHILEg πŸ‹A!i < πŸ‹N INV {foo} VAR bar x DO c OD;;c"
term "c;;WHILEg πŸ‹A!i < πŸ‹N INV {foo} VAR MEASURE πŸ‹N + πŸ‹M DO c;;c OD;;c"
context Foo_impl
begin
term "πŸ‹q :== CALL Foo(πŸ‹p,πŸ‹M)"
term "πŸ‹q :== CALLg Foo(πŸ‹p,πŸ‹M + 1)"
term "πŸ‹q :== CALL Foo(πŸ‹pπŸ‹next,πŸ‹M)"
term "πŸ‹q πŸ‹next :== CALL Foo(πŸ‹p,πŸ‹M)"
end

end

(*>*)

Messung V0.5 in Prozent
C=80 H=95 G=87

Β€ Dauer der Verarbeitung: 0.9 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.