src/HOL/Imperative_HOL/Imperative_HOL_ex.thy
author haftmann
Fri Jul 23 10:58:13 2010 +0200 (2010-07-23)
changeset 37947 844977c7abeb
parent 37845 b70d7a347964
child 37959 6fe5fa827f18
permissions -rw-r--r--
avoid unreliable Haskell Int type
     1 (*  Title:      HOL/Imperative_HOL/Imperative_HOL_ex.thy
     2     Author:     John Matthews, Galois Connections;
     3                 Alexander Krauss, Lukas Bulwahn & Florian Haftmann, TU Muenchen
     4 *)
     5 
     6 header {* Monadic imperative HOL with examples *}
     7 
     8 theory Imperative_HOL_ex
     9 imports Imperative_HOL
    10   "ex/Imperative_Quicksort" "ex/Imperative_Reverse" "ex/Linked_Lists" "ex/SatChecker"
    11 begin
    12 
    13 definition "everything = (Array.new, Array.of_list, Array.make, Array.len, Array.nth,
    14   Array.upd, Array.map_entry, Array.swap, Array.freeze,
    15   ref, Ref.lookup, Ref.update, Ref.change)"
    16 
    17 export_code everything checking SML SML_imp OCaml? OCaml_imp? Haskell? Scala?
    18 
    19 end