src/HOL/HOLCF/Domain_Aux.thy
author wenzelm
Sat Nov 04 15:24:40 2017 +0100 (20 months ago)
changeset 67003 49850a679c2c
parent 62175 8ffc4d0e652d
child 68383 93a42bd62ede
permissions -rw-r--r--
more robust sorted_entries;
wenzelm@42151
     1
(*  Title:      HOL/HOLCF/Domain_Aux.thy
huffman@35652
     2
    Author:     Brian Huffman
huffman@35652
     3
*)
huffman@35652
     4
wenzelm@62175
     5
section \<open>Domain package support\<close>
huffman@35652
     6
huffman@35652
     7
theory Domain_Aux
huffman@40502
     8
imports Map_Functions Fixrec
huffman@35652
     9
begin
huffman@35652
    10
wenzelm@62175
    11
subsection \<open>Continuous isomorphisms\<close>
huffman@35653
    12
wenzelm@62175
    13
text \<open>A locale for continuous isomorphisms\<close>
huffman@35653
    14
huffman@35653
    15
locale iso =
huffman@35653
    16
  fixes abs :: "'a \<rightarrow> 'b"
huffman@35653
    17
  fixes rep :: "'b \<rightarrow> 'a"
huffman@35653
    18
  assumes abs_iso [simp]: "rep\<cdot>(abs\<cdot>x) = x"
huffman@35653
    19
  assumes rep_iso [simp]: "abs\<cdot>(rep\<cdot>y) = y"
huffman@35653
    20
begin
huffman@35653
    21
huffman@35653
    22
lemma swap: "iso rep abs"
huffman@35653
    23
  by (rule iso.intro [OF rep_iso abs_iso])
huffman@35653
    24
huffman@35653
    25
lemma abs_below: "(abs\<cdot>x \<sqsubseteq> abs\<cdot>y) = (x \<sqsubseteq> y)"
huffman@35653
    26
proof
huffman@35653
    27
  assume "abs\<cdot>x \<sqsubseteq> abs\<cdot>y"
huffman@35653
    28
  then have "rep\<cdot>(abs\<cdot>x) \<sqsubseteq> rep\<cdot>(abs\<cdot>y)" by (rule monofun_cfun_arg)
huffman@35653
    29
  then show "x \<sqsubseteq> y" by simp
huffman@35653
    30
next
huffman@35653
    31
  assume "x \<sqsubseteq> y"
huffman@35653
    32
  then show "abs\<cdot>x \<sqsubseteq> abs\<cdot>y" by (rule monofun_cfun_arg)
huffman@35653
    33
qed
huffman@35653
    34
huffman@35653
    35
lemma rep_below: "(rep\<cdot>x \<sqsubseteq> rep\<cdot>y) = (x \<sqsubseteq> y)"
huffman@35653
    36
  by (rule iso.abs_below [OF swap])
huffman@35653
    37
huffman@35653
    38
lemma abs_eq: "(abs\<cdot>x = abs\<cdot>y) = (x = y)"
huffman@35653
    39
  by (simp add: po_eq_conv abs_below)
huffman@35653
    40
huffman@35653
    41
lemma rep_eq: "(rep\<cdot>x = rep\<cdot>y) = (x = y)"
huffman@35653
    42
  by (rule iso.abs_eq [OF swap])
huffman@35653
    43
huffman@35653
    44
lemma abs_strict: "abs\<cdot>\<bottom> = \<bottom>"
huffman@35653
    45
proof -
huffman@35653
    46
  have "\<bottom> \<sqsubseteq> rep\<cdot>\<bottom>" ..
huffman@35653
    47
  then have "abs\<cdot>\<bottom> \<sqsubseteq> abs\<cdot>(rep\<cdot>\<bottom>)" by (rule monofun_cfun_arg)
huffman@35653
    48
  then have "abs\<cdot>\<bottom> \<sqsubseteq> \<bottom>" by simp
huffman@41430
    49
  then show ?thesis by (rule bottomI)
huffman@35653
    50
qed
huffman@35653
    51
huffman@35653
    52
lemma rep_strict: "rep\<cdot>\<bottom> = \<bottom>"
huffman@35653
    53
  by (rule iso.abs_strict [OF swap])
huffman@35653
    54
huffman@35653
    55
lemma abs_defin': "abs\<cdot>x = \<bottom> \<Longrightarrow> x = \<bottom>"
huffman@35653
    56
proof -
huffman@35653
    57
  have "x = rep\<cdot>(abs\<cdot>x)" by simp
huffman@35653
    58
  also assume "abs\<cdot>x = \<bottom>"
huffman@35653
    59
  also note rep_strict
huffman@35653
    60
  finally show "x = \<bottom>" .
huffman@35653
    61
qed
huffman@35653
    62
huffman@35653
    63
lemma rep_defin': "rep\<cdot>z = \<bottom> \<Longrightarrow> z = \<bottom>"
huffman@35653
    64
  by (rule iso.abs_defin' [OF swap])
huffman@35653
    65
huffman@35653
    66
lemma abs_defined: "z \<noteq> \<bottom> \<Longrightarrow> abs\<cdot>z \<noteq> \<bottom>"
huffman@35653
    67
  by (erule contrapos_nn, erule abs_defin')
huffman@35653
    68
huffman@35653
    69
lemma rep_defined: "z \<noteq> \<bottom> \<Longrightarrow> rep\<cdot>z \<noteq> \<bottom>"
huffman@35653
    70
  by (rule iso.abs_defined [OF iso.swap]) (rule iso_axioms)
huffman@35653
    71
huffman@40321
    72
lemma abs_bottom_iff: "(abs\<cdot>x = \<bottom>) = (x = \<bottom>)"
huffman@35653
    73
  by (auto elim: abs_defin' intro: abs_strict)
huffman@35653
    74
huffman@40321
    75
lemma rep_bottom_iff: "(rep\<cdot>x = \<bottom>) = (x = \<bottom>)"
huffman@40321
    76
  by (rule iso.abs_bottom_iff [OF iso.swap]) (rule iso_axioms)
huffman@35653
    77
huffman@35653
    78
lemma casedist_rule: "rep\<cdot>x = \<bottom> \<or> P \<Longrightarrow> x = \<bottom> \<or> P"
huffman@40321
    79
  by (simp add: rep_bottom_iff)
huffman@35653
    80
huffman@35653
    81
lemma compact_abs_rev: "compact (abs\<cdot>x) \<Longrightarrow> compact x"
huffman@35653
    82
proof (unfold compact_def)
huffman@41182
    83
  assume "adm (\<lambda>y. abs\<cdot>x \<notsqsubseteq> y)"
huffman@40327
    84
  with cont_Rep_cfun2
huffman@41182
    85
  have "adm (\<lambda>y. abs\<cdot>x \<notsqsubseteq> abs\<cdot>y)" by (rule adm_subst)
huffman@41182
    86
  then show "adm (\<lambda>y. x \<notsqsubseteq> y)" using abs_below by simp
huffman@35653
    87
qed
huffman@35653
    88
huffman@35653
    89
lemma compact_rep_rev: "compact (rep\<cdot>x) \<Longrightarrow> compact x"
huffman@35653
    90
  by (rule iso.compact_abs_rev [OF iso.swap]) (rule iso_axioms)
huffman@35653
    91
huffman@35653
    92
lemma compact_abs: "compact x \<Longrightarrow> compact (abs\<cdot>x)"
huffman@35653
    93
  by (rule compact_rep_rev) simp
huffman@35653
    94
huffman@35653
    95
lemma compact_rep: "compact x \<Longrightarrow> compact (rep\<cdot>x)"
huffman@35653
    96
  by (rule iso.compact_abs [OF iso.swap]) (rule iso_axioms)
huffman@35653
    97
huffman@35653
    98
lemma iso_swap: "(x = abs\<cdot>y) = (rep\<cdot>x = y)"
huffman@35653
    99
proof
huffman@35653
   100
  assume "x = abs\<cdot>y"
huffman@35653
   101
  then have "rep\<cdot>x = rep\<cdot>(abs\<cdot>y)" by simp
huffman@35653
   102
  then show "rep\<cdot>x = y" by simp
huffman@35653
   103
next
huffman@35653
   104
  assume "rep\<cdot>x = y"
huffman@35653
   105
  then have "abs\<cdot>(rep\<cdot>x) = abs\<cdot>y" by simp
huffman@35653
   106
  then show "x = abs\<cdot>y" by simp
huffman@35653
   107
qed
huffman@35653
   108
huffman@35653
   109
end
huffman@35653
   110
wenzelm@62175
   111
subsection \<open>Proofs about take functions\<close>
huffman@35652
   112
wenzelm@62175
   113
text \<open>
huffman@35652
   114
  This section contains lemmas that are used in a module that supports
huffman@35652
   115
  the domain isomorphism package; the module contains proofs related
huffman@35652
   116
  to take functions and the finiteness predicate.
wenzelm@62175
   117
\<close>
huffman@35652
   118
huffman@35652
   119
lemma deflation_abs_rep:
huffman@35652
   120
  fixes abs and rep and d
huffman@35652
   121
  assumes abs_iso: "\<And>x. rep\<cdot>(abs\<cdot>x) = x"
huffman@35652
   122
  assumes rep_iso: "\<And>y. abs\<cdot>(rep\<cdot>y) = y"
huffman@35652
   123
  shows "deflation d \<Longrightarrow> deflation (abs oo d oo rep)"
huffman@35652
   124
by (rule ep_pair.deflation_e_d_p) (simp add: ep_pair.intro assms)
huffman@35652
   125
huffman@35652
   126
lemma deflation_chain_min:
huffman@35652
   127
  assumes chain: "chain d"
huffman@35652
   128
  assumes defl: "\<And>n. deflation (d n)"
huffman@35652
   129
  shows "d m\<cdot>(d n\<cdot>x) = d (min m n)\<cdot>x"
huffman@35652
   130
proof (rule linorder_le_cases)
huffman@35652
   131
  assume "m \<le> n"
huffman@35652
   132
  with chain have "d m \<sqsubseteq> d n" by (rule chain_mono)
huffman@35652
   133
  then have "d m\<cdot>(d n\<cdot>x) = d m\<cdot>x"
huffman@35652
   134
    by (rule deflation_below_comp1 [OF defl defl])
wenzelm@62175
   135
  moreover from \<open>m \<le> n\<close> have "min m n = m" by simp
huffman@35652
   136
  ultimately show ?thesis by simp
huffman@35652
   137
next
huffman@35652
   138
  assume "n \<le> m"
huffman@35652
   139
  with chain have "d n \<sqsubseteq> d m" by (rule chain_mono)
huffman@35652
   140
  then have "d m\<cdot>(d n\<cdot>x) = d n\<cdot>x"
huffman@35652
   141
    by (rule deflation_below_comp2 [OF defl defl])
wenzelm@62175
   142
  moreover from \<open>n \<le> m\<close> have "min m n = n" by simp
huffman@35652
   143
  ultimately show ?thesis by simp
huffman@35652
   144
qed
huffman@35652
   145
huffman@35653
   146
lemma lub_ID_take_lemma:
huffman@35653
   147
  assumes "chain t" and "(\<Squnion>n. t n) = ID"
huffman@35653
   148
  assumes "\<And>n. t n\<cdot>x = t n\<cdot>y" shows "x = y"
huffman@35653
   149
proof -
huffman@35653
   150
  have "(\<Squnion>n. t n\<cdot>x) = (\<Squnion>n. t n\<cdot>y)"
huffman@35653
   151
    using assms(3) by simp
huffman@35653
   152
  then have "(\<Squnion>n. t n)\<cdot>x = (\<Squnion>n. t n)\<cdot>y"
huffman@35653
   153
    using assms(1) by (simp add: lub_distribs)
huffman@35653
   154
  then show "x = y"
huffman@35653
   155
    using assms(2) by simp
huffman@35653
   156
qed
huffman@35653
   157
huffman@35653
   158
lemma lub_ID_reach:
huffman@35653
   159
  assumes "chain t" and "(\<Squnion>n. t n) = ID"
huffman@35653
   160
  shows "(\<Squnion>n. t n\<cdot>x) = x"
huffman@35653
   161
using assms by (simp add: lub_distribs)
huffman@35653
   162
huffman@35655
   163
lemma lub_ID_take_induct:
huffman@35655
   164
  assumes "chain t" and "(\<Squnion>n. t n) = ID"
huffman@35655
   165
  assumes "adm P" and "\<And>n. P (t n\<cdot>x)" shows "P x"
huffman@35655
   166
proof -
wenzelm@62175
   167
  from \<open>chain t\<close> have "chain (\<lambda>n. t n\<cdot>x)" by simp
wenzelm@62175
   168
  from \<open>adm P\<close> this \<open>\<And>n. P (t n\<cdot>x)\<close> have "P (\<Squnion>n. t n\<cdot>x)" by (rule admD)
wenzelm@62175
   169
  with \<open>chain t\<close> \<open>(\<Squnion>n. t n) = ID\<close> show "P x" by (simp add: lub_distribs)
huffman@35655
   170
qed
huffman@35655
   171
wenzelm@62175
   172
subsection \<open>Finiteness\<close>
huffman@35653
   173
wenzelm@62175
   174
text \<open>
huffman@35653
   175
  Let a ``decisive'' function be a deflation that maps every input to
huffman@35653
   176
  either itself or bottom.  Then if a domain's take functions are all
huffman@35653
   177
  decisive, then all values in the domain are finite.
wenzelm@62175
   178
\<close>
huffman@35653
   179
huffman@35653
   180
definition
huffman@35653
   181
  decisive :: "('a::pcpo \<rightarrow> 'a) \<Rightarrow> bool"
huffman@35653
   182
where
huffman@35653
   183
  "decisive d \<longleftrightarrow> (\<forall>x. d\<cdot>x = x \<or> d\<cdot>x = \<bottom>)"
huffman@35653
   184
huffman@35653
   185
lemma decisiveI: "(\<And>x. d\<cdot>x = x \<or> d\<cdot>x = \<bottom>) \<Longrightarrow> decisive d"
huffman@35653
   186
  unfolding decisive_def by simp
huffman@35653
   187
huffman@35653
   188
lemma decisive_cases:
huffman@35653
   189
  assumes "decisive d" obtains "d\<cdot>x = x" | "d\<cdot>x = \<bottom>"
huffman@35653
   190
using assms unfolding decisive_def by auto
huffman@35653
   191
huffman@35653
   192
lemma decisive_bottom: "decisive \<bottom>"
huffman@35653
   193
  unfolding decisive_def by simp
huffman@35653
   194
huffman@35653
   195
lemma decisive_ID: "decisive ID"
huffman@35653
   196
  unfolding decisive_def by simp
huffman@35653
   197
huffman@35653
   198
lemma decisive_ssum_map:
huffman@35653
   199
  assumes f: "decisive f"
huffman@35653
   200
  assumes g: "decisive g"
huffman@35653
   201
  shows "decisive (ssum_map\<cdot>f\<cdot>g)"
huffman@35653
   202
apply (rule decisiveI, rename_tac s)
huffman@35653
   203
apply (case_tac s, simp_all)
huffman@35653
   204
apply (rule_tac x=x in decisive_cases [OF f], simp_all)
huffman@35653
   205
apply (rule_tac x=y in decisive_cases [OF g], simp_all)
huffman@35653
   206
done
huffman@35653
   207
huffman@35653
   208
lemma decisive_sprod_map:
huffman@35653
   209
  assumes f: "decisive f"
huffman@35653
   210
  assumes g: "decisive g"
huffman@35653
   211
  shows "decisive (sprod_map\<cdot>f\<cdot>g)"
huffman@35653
   212
apply (rule decisiveI, rename_tac s)
huffman@35653
   213
apply (case_tac s, simp_all)
huffman@35653
   214
apply (rule_tac x=x in decisive_cases [OF f], simp_all)
huffman@35653
   215
apply (rule_tac x=y in decisive_cases [OF g], simp_all)
huffman@35653
   216
done
huffman@35653
   217
huffman@35653
   218
lemma decisive_abs_rep:
huffman@35653
   219
  fixes abs rep
huffman@35653
   220
  assumes iso: "iso abs rep"
huffman@35653
   221
  assumes d: "decisive d"
huffman@35653
   222
  shows "decisive (abs oo d oo rep)"
huffman@35653
   223
apply (rule decisiveI)
huffman@35653
   224
apply (rule_tac x="rep\<cdot>x" in decisive_cases [OF d])
huffman@35653
   225
apply (simp add: iso.rep_iso [OF iso])
huffman@35653
   226
apply (simp add: iso.abs_strict [OF iso])
huffman@35653
   227
done
huffman@35653
   228
huffman@35653
   229
lemma lub_ID_finite:
huffman@35653
   230
  assumes chain: "chain d"
huffman@35653
   231
  assumes lub: "(\<Squnion>n. d n) = ID"
huffman@35653
   232
  assumes decisive: "\<And>n. decisive (d n)"
huffman@35653
   233
  shows "\<exists>n. d n\<cdot>x = x"
huffman@35653
   234
proof -
huffman@35653
   235
  have 1: "chain (\<lambda>n. d n\<cdot>x)" using chain by simp
huffman@35653
   236
  have 2: "(\<Squnion>n. d n\<cdot>x) = x" using chain lub by (rule lub_ID_reach)
huffman@35653
   237
  have "\<forall>n. d n\<cdot>x = x \<or> d n\<cdot>x = \<bottom>"
huffman@35653
   238
    using decisive unfolding decisive_def by simp
huffman@35653
   239
  hence "range (\<lambda>n. d n\<cdot>x) \<subseteq> {x, \<bottom>}"
huffman@35653
   240
    by auto
huffman@35653
   241
  hence "finite (range (\<lambda>n. d n\<cdot>x))"
huffman@35653
   242
    by (rule finite_subset, simp)
huffman@35653
   243
  with 1 have "finite_chain (\<lambda>n. d n\<cdot>x)"
huffman@35653
   244
    by (rule finite_range_imp_finch)
huffman@35653
   245
  then have "\<exists>n. (\<Squnion>n. d n\<cdot>x) = d n\<cdot>x"
huffman@35653
   246
    unfolding finite_chain_def by (auto simp add: maxinch_is_thelub)
huffman@35653
   247
  with 2 show "\<exists>n. d n\<cdot>x = x" by (auto elim: sym)
huffman@35653
   248
qed
huffman@35653
   249
huffman@35655
   250
lemma lub_ID_finite_take_induct:
huffman@35655
   251
  assumes "chain d" and "(\<Squnion>n. d n) = ID" and "\<And>n. decisive (d n)"
huffman@35655
   252
  shows "(\<And>n. P (d n\<cdot>x)) \<Longrightarrow> P x"
huffman@35655
   253
using lub_ID_finite [OF assms] by metis
huffman@35655
   254
wenzelm@62175
   255
subsection \<open>Proofs about constructor functions\<close>
huffman@40503
   256
wenzelm@62175
   257
text \<open>Lemmas for proving nchotomy rule:\<close>
huffman@40503
   258
huffman@40503
   259
lemma ex_one_bottom_iff:
huffman@40503
   260
  "(\<exists>x. P x \<and> x \<noteq> \<bottom>) = P ONE"
huffman@40503
   261
by simp
huffman@40503
   262
huffman@40503
   263
lemma ex_up_bottom_iff:
huffman@40503
   264
  "(\<exists>x. P x \<and> x \<noteq> \<bottom>) = (\<exists>x. P (up\<cdot>x))"
huffman@40503
   265
by (safe, case_tac x, auto)
huffman@40503
   266
huffman@40503
   267
lemma ex_sprod_bottom_iff:
huffman@40503
   268
 "(\<exists>y. P y \<and> y \<noteq> \<bottom>) =
huffman@40503
   269
  (\<exists>x y. (P (:x, y:) \<and> x \<noteq> \<bottom>) \<and> y \<noteq> \<bottom>)"
huffman@40503
   270
by (safe, case_tac y, auto)
huffman@40503
   271
huffman@40503
   272
lemma ex_sprod_up_bottom_iff:
huffman@40503
   273
 "(\<exists>y. P y \<and> y \<noteq> \<bottom>) =
huffman@40503
   274
  (\<exists>x y. P (:up\<cdot>x, y:) \<and> y \<noteq> \<bottom>)"
huffman@40503
   275
by (safe, case_tac y, simp, case_tac x, auto)
huffman@40503
   276
huffman@40503
   277
lemma ex_ssum_bottom_iff:
huffman@40503
   278
 "(\<exists>x. P x \<and> x \<noteq> \<bottom>) =
huffman@40503
   279
 ((\<exists>x. P (sinl\<cdot>x) \<and> x \<noteq> \<bottom>) \<or>
huffman@40503
   280
  (\<exists>x. P (sinr\<cdot>x) \<and> x \<noteq> \<bottom>))"
huffman@40503
   281
by (safe, case_tac x, auto)
huffman@40503
   282
huffman@40503
   283
lemma exh_start: "p = \<bottom> \<or> (\<exists>x. p = x \<and> x \<noteq> \<bottom>)"
huffman@40503
   284
  by auto
huffman@40503
   285
huffman@40503
   286
lemmas ex_bottom_iffs =
huffman@40503
   287
   ex_ssum_bottom_iff
huffman@40503
   288
   ex_sprod_up_bottom_iff
huffman@40503
   289
   ex_sprod_bottom_iff
huffman@40503
   290
   ex_up_bottom_iff
huffman@40503
   291
   ex_one_bottom_iff
huffman@40503
   292
wenzelm@62175
   293
text \<open>Rules for turning nchotomy into exhaust:\<close>
huffman@40503
   294
huffman@40503
   295
lemma exh_casedist0: "\<lbrakk>R; R \<Longrightarrow> P\<rbrakk> \<Longrightarrow> P" (* like make_elim *)
huffman@40503
   296
  by auto
huffman@40503
   297
huffman@40503
   298
lemma exh_casedist1: "((P \<or> Q \<Longrightarrow> R) \<Longrightarrow> S) \<equiv> (\<lbrakk>P \<Longrightarrow> R; Q \<Longrightarrow> R\<rbrakk> \<Longrightarrow> S)"
huffman@40503
   299
  by rule auto
huffman@40503
   300
huffman@40503
   301
lemma exh_casedist2: "(\<exists>x. P x \<Longrightarrow> Q) \<equiv> (\<And>x. P x \<Longrightarrow> Q)"
huffman@40503
   302
  by rule auto
huffman@40503
   303
huffman@40503
   304
lemma exh_casedist3: "(P \<and> Q \<Longrightarrow> R) \<equiv> (P \<Longrightarrow> Q \<Longrightarrow> R)"
huffman@40503
   305
  by rule auto
huffman@40503
   306
huffman@40503
   307
lemmas exh_casedists = exh_casedist1 exh_casedist2 exh_casedist3
huffman@40503
   308
wenzelm@62175
   309
text \<open>Rules for proving constructor properties\<close>
huffman@40503
   310
huffman@40503
   311
lemmas con_strict_rules =
huffman@40503
   312
  sinl_strict sinr_strict spair_strict1 spair_strict2
huffman@40503
   313
huffman@40503
   314
lemmas con_bottom_iff_rules =
huffman@40503
   315
  sinl_bottom_iff sinr_bottom_iff spair_bottom_iff up_defined ONE_defined
huffman@40503
   316
huffman@40503
   317
lemmas con_below_iff_rules =
huffman@40503
   318
  sinl_below sinr_below sinl_below_sinr sinr_below_sinl con_bottom_iff_rules
huffman@40503
   319
huffman@40503
   320
lemmas con_eq_iff_rules =
huffman@40503
   321
  sinl_eq sinr_eq sinl_eq_sinr sinr_eq_sinl con_bottom_iff_rules
huffman@40503
   322
huffman@40503
   323
lemmas sel_strict_rules =
huffman@40503
   324
  cfcomp2 sscase1 sfst_strict ssnd_strict fup1
huffman@40503
   325
huffman@40503
   326
lemma sel_app_extra_rules:
huffman@40503
   327
  "sscase\<cdot>ID\<cdot>\<bottom>\<cdot>(sinr\<cdot>x) = \<bottom>"
huffman@40503
   328
  "sscase\<cdot>ID\<cdot>\<bottom>\<cdot>(sinl\<cdot>x) = x"
huffman@40503
   329
  "sscase\<cdot>\<bottom>\<cdot>ID\<cdot>(sinl\<cdot>x) = \<bottom>"
huffman@40503
   330
  "sscase\<cdot>\<bottom>\<cdot>ID\<cdot>(sinr\<cdot>x) = x"
huffman@40503
   331
  "fup\<cdot>ID\<cdot>(up\<cdot>x) = x"
huffman@40503
   332
by (cases "x = \<bottom>", simp, simp)+
huffman@40503
   333
huffman@40503
   334
lemmas sel_app_rules =
huffman@40503
   335
  sel_strict_rules sel_app_extra_rules
huffman@40503
   336
  ssnd_spair sfst_spair up_defined spair_defined
huffman@40503
   337
huffman@40503
   338
lemmas sel_bottom_iff_rules =
huffman@40503
   339
  cfcomp2 sfst_bottom_iff ssnd_bottom_iff
huffman@40503
   340
huffman@40503
   341
lemmas take_con_rules =
huffman@40503
   342
  ssum_map_sinl' ssum_map_sinr' sprod_map_spair' u_map_up
huffman@40503
   343
  deflation_strict deflation_ID ID1 cfcomp2
huffman@40503
   344
wenzelm@62175
   345
subsection \<open>ML setup\<close>
huffman@35653
   346
wenzelm@57945
   347
named_theorems domain_deflation "theorems like deflation a ==> deflation (foo_map$a)"
wenzelm@59028
   348
  and domain_map_ID "theorems like foo_map$ID = ID"
wenzelm@57945
   349
wenzelm@48891
   350
ML_file "Tools/Domain/domain_take_proofs.ML"
wenzelm@48891
   351
ML_file "Tools/cont_consts.ML"
wenzelm@48891
   352
ML_file "Tools/cont_proc.ML"
wenzelm@48891
   353
ML_file "Tools/Domain/domain_constructors.ML"
wenzelm@48891
   354
ML_file "Tools/Domain/domain_induction.ML"
huffman@35652
   355
huffman@35652
   356
end