Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Parallel.thy

  Sprache: Isabelle
 

(* Author: Florian Haftmann, TU Muenchen *)

section Futures and parallel lists for code generated towards Isabelle/ML

theory Parallel
imports Main
begin

subsection Futures

datatype 'a future = fork "unit 'a"

primrec join :: "'a future 'a" where
  "join (fork f) = f ()"

lemma future_eqI [intro!]:
  assumes "join f = join g"
  shows "f = g"
  using assms by (cases f, cases g) (simp add: ext)

code_printing
  type_constructor future  (Eval) "_ future"
| constant fork  (Eval) "Future.fork"
| constant join  (Eval) "Future.join"

code_reserved (Eval) Future future


subsection Parallel lists

definition map :: "('a 'b) 'a list 'b list" where
  [simp]: "map = List.map"

definition forall :: "('a bool) 'a list bool" where
  "forall = list_all"

lemma forall_all [simp]:
  "forall P xs (xset xs. P x)"
  by (simp add: forall_def list_all_iff)

definition exists :: "('a bool) 'a list bool" where
  "exists = list_ex"

lemma exists_ex [simp]:
  "exists P xs (xset xs. P x)"
  by (simp add: exists_def list_ex_iff)

code_printing
  constant map  (Eval) "Par'_List.map"
| constant forall  (Eval) "Par'_List.forall"
| constant exists  (Eval) "Par'_List.exists"

code_reserved (Eval) Par_List


hide_const (open) fork join map exists forall

end


Messung V0.5 in Prozent
C=94 H=100 G=96

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-30) ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik