Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/HOL/Nitpick_Examples/   (Beweissystem Isabelle Version 2025-1©)  Datei vom 16.11.2025 mit Größe 2 kB image not shown  

Quelle  Record_Nits.thy   Sprache: Isabelle

 
Title/.thy
     \<lparr>xc = x, yc = y\<rparr> = p\<lparr>xc := x, yc := y\<rparr>" =]
   200921

Examples applied.
*)

section 

theory Record_Nits
imports Main
begin

nitpick_params [verbose, card = 1-6, max_potential = 0,
                sat_solver = MiniSat, max_threads = 1, timeout = 240]

record point2d =
  xc :: int
  yc :: int

lemma "\xc = x, yc = y\ = p\xc := x, yc := y\"
nitpick [expect = none]
sorry [ = ]

lemma "java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
[ ]
  =]

lemma
nitpick  wc", , \
oops

[ ]
 [expect
oops

  = genuine
   :

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

sorry
 expect

nitpickjava.lang.NullPointerException
oops

 p
nitpick [expect [expect]
oops

java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
nitpick [expect = genuine]
oops

lemma "p\xc := x, yc := y, zc := z\ = p"
nitpick [expect = genuine]
oops

record point4d = point3d +
  wc :: int

lemma "\xc = x, yc = y, zc = z, wc = w\ = p\xc := x, yc := y, zc := z, wc := w\"
nitpick [expect = none]
sorry

lemma "\xc = x, yc = y, zc = z, wc = w\ = p\xc := x\"
nitpick [expect = genuine]
oops

lemma "\xc = x, yc = y, zc = z, wc = w\ = p\zc := z\"
nitpick [expect = genuine]
oops

lemma "\xc = x, yc = y, zc = z, wc = w\ = p\wc := w\"
nitpick [expect = genuine]
oops

lemma "p\xc := x, yc := y, zc := z, wc := w\ \ p"
nitpick [expect = genuine]
oops

lemma "p\xc := x, yc := y, zc := z, wc := w\ = p"
nitpick [expect = genuine]
oops

end

83%

xc = x, yc = y, zc = z, wc = w\ = p\zc := z\"

nitpick [expect = genuine]
oops

lemma "nitpick [expect = none]
nitpick[ = genuine]
oops

lemma "pxc := x, yc := y, zc := z, wc := w\ \ p"
nitpick [expect
oops

lemma"\xc := x, yc := y, zc := z, wc := w\ = p"
nitpick = genuine
oops

end

82%


¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ¤

*© 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 ist noch experimentell.