equal
deleted
inserted
replaced
114 lemma typedef_ideal_cpo: |
114 lemma typedef_ideal_cpo: |
115 fixes Abs :: "'a set \<Rightarrow> 'b::po" |
115 fixes Abs :: "'a set \<Rightarrow> 'b::po" |
116 assumes type: "type_definition Rep Abs {S. ideal S}" |
116 assumes type: "type_definition Rep Abs {S. ideal S}" |
117 assumes below: "\<And>x y. x \<sqsubseteq> y \<longleftrightarrow> Rep x \<subseteq> Rep y" |
117 assumes below: "\<And>x y. x \<sqsubseteq> y \<longleftrightarrow> Rep x \<subseteq> Rep y" |
118 shows "OFCLASS('b, cpo_class)" |
118 shows "OFCLASS('b, cpo_class)" |
119 by (default, rule exI, erule typedef_ideal_lub [OF type below]) |
119 by standard (rule exI, erule typedef_ideal_lub [OF type below]) |
120 |
120 |
121 end |
121 end |
122 |
122 |
123 interpretation below: preorder "below :: 'a::po \<Rightarrow> 'a \<Rightarrow> bool" |
123 interpretation below: preorder "below :: 'a::po \<Rightarrow> 'a \<Rightarrow> bool" |
124 apply unfold_locales |
124 apply unfold_locales |