Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Isabelle/Archive-of-Formal-Proofs/thys/JinjaThreads/J/   (Archive of formal Proofs Version 2026-5©)  Datei vom 31.4.2026 mit Größe 5 kB image not shown  

Quelle  JHeap.thy

  Sprache: Isabelle
 

(*  Title:      JinjaThreads/J/JHeap.thy
    Author:     Andreas Lochbihler
*)


section Abstract heap locales for source code programs

theory JHeap
imports
  "../Common/Conform"
  Expr
begin

locale J_heap_base = heap_base +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"

locale J_heap = heap + 
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and P :: "'addr J_prog"

sublocale J_heap < J_heap_base .

locale J_heap_conf_base = heap_conf_base +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and hconf :: "'heap bool"
  and P :: "'addr J_prog"

sublocale J_heap_conf_base < J_heap_base .

locale J_heap_conf = 
  J_heap_conf_base +
  heap_conf +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and hconf :: "'heap bool"
  and P :: "'addr J_prog"

sublocale J_heap_conf < J_heap
by(unfold_locales)

locale J_progress =
  heap_progress +
  J_heap_conf_base +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and hconf :: "'heap bool"
  and P :: "'addr J_prog"

sublocale J_progress < J_heap by(unfold_locales) 

locale J_conf_read =
  heap_conf_read +
  J_heap_conf +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and hconf :: "'heap bool"
  and P :: "'addr J_prog"

sublocale J_conf_read < J_heap by(unfold_locales)

locale J_typesafe =
  heap_typesafe +
  J_conf_read +
  J_progress +
  constrains addr2thread_id :: "('addr :: addr) 'thread_id"
  and thread_id2addr :: "'thread_id 'addr"
  and spurious_wakeups :: bool
  and empty_heap :: "'heap"
  and allocate :: "'heap htype ('heap × 'addr) set"
  and typeof_addr :: "'heap 'addr htype"
  and heap_read :: "'heap 'addr addr_loc 'addr val bool"
  and heap_write :: "'heap 'addr addr_loc 'addr val 'heap bool"
  and hconf :: "'heap bool"
  and P :: "'addr J_prog"

end

Messung V0.5 in Prozent
C=99 H=100 G=99

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-07-06) ¤

*© 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.