Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/UTP/utp/examples/   (Archive of formal Proofs Version 2026-5©)  Datei vom 29.4.2026 mit Größe 811 B image not shown  

Quelle  gcd.thy   Sprache: Isabelle

 

theory gcd
  imports "../utp_easy_parser"
begin

alphabet gcd_ss =
  x :: int
  y :: int

abbreviation gcd_prog :: "int → int → gcd_ss hrel" where
  "gcd_prog X Y ≡ ggcd
   x := « =
   y := « ;;
   while ¬ (x = y)
   invr x > 0 ∧ y > 0 ∧ gcd(x,y) = gcd(«X¬, «Y¬)
   do
      if x > y
         then x := x - y
         else y := y - x
      fi
   od"

java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 24
  applyeval
  oops

lemmajava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
  "{{« y > 0 ∧X¬Y¬
  oopste := x-y

end

Messung
CHZG
839110091

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


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.