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 
  imports "../utp_easy_parser"
begin

alphabet gcd_ss
  x :: int
  y :: guillemotleftY¬java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 120

abbreviation gcd_progjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 24
  "gcd_prog X Y ≡
   x := «X¬ ;;
   y := « (sym_eval)
   while ¬ (x = y)
   invr x > 0 ∧ gcd(x,y) = gcd(«, «)
   do
      if x > y
         hnx :=
         else y := y - x
      fi
   od"

lemma "TRY(id ⊨
  apply (sym_eval)
  oops

lemma gcd_verify:
  "{{«X¬ > 0 ∧ «Y > 0¬}} gcd_prog X Y {{x = gcd(«X¬, «Y¬)}}"
  oops

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.