major reorganization/simplification of HOLCF type classes:
removed profinite/bifinite classes and approx function;
universal domain uses approx_chain locale instead of bifinite class;
ideal_completion locale does not use 'take' functions, requires countable basis instead;
replaced type 'udom alg_defl' with type 'sfp';
replaced class 'rep' with class 'sfp';
renamed REP('a) to SFP('a);
(* Title: HOLCF/Powerdomains.thy
Author: Brian Huffman
*)
header {* Powerdomains *}
theory Powerdomains
imports ConvexPD Domain
begin
lemma isodefl_upper:
"isodefl d t \<Longrightarrow> isodefl (upper_map\<cdot>d) (upper_sfp\<cdot>t)"
apply (rule isodeflI)
apply (simp add: cast_upper_sfp cast_isodefl)
apply (simp add: emb_upper_pd_def prj_upper_pd_def)
apply (simp add: upper_map_map)
done
lemma isodefl_lower:
"isodefl d t \<Longrightarrow> isodefl (lower_map\<cdot>d) (lower_sfp\<cdot>t)"
apply (rule isodeflI)
apply (simp add: cast_lower_sfp cast_isodefl)
apply (simp add: emb_lower_pd_def prj_lower_pd_def)
apply (simp add: lower_map_map)
done
lemma isodefl_convex:
"isodefl d t \<Longrightarrow> isodefl (convex_map\<cdot>d) (convex_sfp\<cdot>t)"
apply (rule isodeflI)
apply (simp add: cast_convex_sfp cast_isodefl)
apply (simp add: emb_convex_pd_def prj_convex_pd_def)
apply (simp add: convex_map_map)
done
subsection {* Domain package setup for powerdomains *}
setup {*
fold Domain_Isomorphism.add_type_constructor
[(@{type_name "upper_pd"}, @{term upper_sfp}, @{const_name upper_map},
@{thm SFP_upper}, @{thm isodefl_upper}, @{thm upper_map_ID},
@{thm deflation_upper_map}),
(@{type_name "lower_pd"}, @{term lower_sfp}, @{const_name lower_map},
@{thm SFP_lower}, @{thm isodefl_lower}, @{thm lower_map_ID},
@{thm deflation_lower_map}),
(@{type_name "convex_pd"}, @{term convex_sfp}, @{const_name convex_map},
@{thm SFP_convex}, @{thm isodefl_convex}, @{thm convex_map_ID},
@{thm deflation_convex_map})]
*}
end