src/HOL/Statespace/StateSpaceLocale.thy
author kuncar
Fri Dec 09 18:07:04 2011 +0100 (2011-12-09)
changeset 45802 b16f976db515
parent 45358 4849133d7a78
child 46950 d0181abdbdac
permissions -rw-r--r--
Quotient_Info stores only relation maps
wenzelm@41959
     1
(*  Title:      HOL/Statespace/StateSpaceLocale.thy
schirmer@25171
     2
    Author:     Norbert Schirmer, TU Muenchen
schirmer@25171
     3
*)
schirmer@25171
     4
schirmer@25171
     5
header {* Setup for State Space Locales \label{sec:StateSpaceLocale}*}
schirmer@25171
     6
schirmer@25171
     7
theory StateSpaceLocale imports StateFun 
wenzelm@25174
     8
uses "state_space.ML" "state_fun.ML"
schirmer@25171
     9
begin
schirmer@25171
    10
schirmer@25171
    11
setup StateFun.setup
schirmer@25171
    12
schirmer@25171
    13
text {* For every type that is to be stored in a state space, an
schirmer@25171
    14
instance of this locale is imported in order convert the abstract and
schirmer@25171
    15
concrete values.*}
schirmer@25171
    16
schirmer@25171
    17
norbert@29247
    18
locale project_inject =
schirmer@25171
    19
 fixes project :: "'value \<Rightarrow> 'a"
wenzelm@38838
    20
  and inject :: "'a \<Rightarrow> 'value"
schirmer@25171
    21
 assumes project_inject_cancel [statefun_simp]: "project (inject x) = x"
wenzelm@45358
    22
begin
schirmer@25171
    23
wenzelm@45358
    24
lemma ex_project [statefun_simp]: "\<exists>v. project v = x"
wenzelm@45358
    25
proof
wenzelm@45358
    26
  show "project (inject x) = x"
wenzelm@45358
    27
    by (rule project_inject_cancel)
wenzelm@45358
    28
qed
schirmer@25171
    29
wenzelm@45358
    30
lemma project_inject_comp_id [statefun_simp]: "project \<circ> inject = id"
schirmer@25171
    31
  by (rule ext) (simp add: project_inject_cancel)
schirmer@25171
    32
wenzelm@45358
    33
lemma project_inject_comp_cancel[statefun_simp]: "f \<circ> project \<circ> inject = f"
schirmer@25171
    34
  by (rule ext) (simp add: project_inject_cancel)
schirmer@25171
    35
wenzelm@45358
    36
end
schirmer@25171
    37
schirmer@25171
    38
end