src/HOLCF/FOCUS/Stream_adm.thy
author wenzelm
Thu, 12 Aug 2010 13:49:08 +0200
changeset 38360 53224a4d2f0e
parent 37110 7ffdbc24b27f
child 40430 483a4876e428
permissions -rw-r--r--
specific Session.Commands_Changed;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
     1
(*  Title:      HOLCF/ex/Stream_adm.thy
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
     2
    Author:     David von Oheimb, TU Muenchen
11350
4c55b020d6ee added FOCUS including the One-Element Buffer by Manfred Broy
oheimb
parents:
diff changeset
     3
*)
4c55b020d6ee added FOCUS including the One-Element Buffer by Manfred Broy
oheimb
parents:
diff changeset
     4
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
     5
header {* Admissibility for streams *}
11350
4c55b020d6ee added FOCUS including the One-Element Buffer by Manfred Broy
oheimb
parents:
diff changeset
     6
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
     7
theory Stream_adm
37110
7ffdbc24b27f move Strict_Fun and Stream theories to new HOLCF/Library directory; add HOLCF/Library to search path
huffman
parents: 35174
diff changeset
     8
imports Stream Continuity
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
     9
begin
11350
4c55b020d6ee added FOCUS including the One-Element Buffer by Manfred Broy
oheimb
parents:
diff changeset
    10
19763
wenzelm
parents: 19759
diff changeset
    11
definition
21404
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19763
diff changeset
    12
  stream_monoP  :: "(('a stream) set \<Rightarrow> ('a stream) set) \<Rightarrow> bool" where
19763
wenzelm
parents: 19759
diff changeset
    13
  "stream_monoP F = (\<exists>Q i. \<forall>P s. Fin i \<le> #s \<longrightarrow>
wenzelm
parents: 19759
diff changeset
    14
                    (s \<in> F P) = (stream_take i\<cdot>s \<in> Q \<and> iterate i\<cdot>rt\<cdot>s \<in> P))"
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    15
21404
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19763
diff changeset
    16
definition
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19763
diff changeset
    17
  stream_antiP  :: "(('a stream) set \<Rightarrow> ('a stream) set) \<Rightarrow> bool" where
19763
wenzelm
parents: 19759
diff changeset
    18
  "stream_antiP F = (\<forall>P x. \<exists>Q i.
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    19
                (#x  < Fin i \<longrightarrow> (\<forall>y. x \<sqsubseteq> y \<longrightarrow> y \<in> F P \<longrightarrow> x \<in> F P)) \<and>
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    20
                (Fin i <= #x \<longrightarrow> (\<forall>y. x \<sqsubseteq> y \<longrightarrow>
19763
wenzelm
parents: 19759
diff changeset
    21
                (y \<in> F P) = (stream_take i\<cdot>y \<in> Q \<and> iterate i\<cdot>rt\<cdot>y \<in> P))))"
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    22
21404
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19763
diff changeset
    23
definition
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19763
diff changeset
    24
  antitonP :: "'a set => bool" where
19763
wenzelm
parents: 19759
diff changeset
    25
  "antitonP P = (\<forall>x y. x \<sqsubseteq> y \<longrightarrow> y\<in>P \<longrightarrow> x\<in>P)"
17293
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    26
ecf182ccc3ca converted to Isar theory format;
wenzelm
parents: 14981
diff changeset
    27
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    28
(* ----------------------------------------------------------------------- *)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    29
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    30
section "admissibility"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    31
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    32
lemma flatstream_adm_lemma:
26451
f8a615f3bb31 avoid amiguity of Continuity.chain vs. Porder.chain;
wenzelm
parents: 26102
diff changeset
    33
  assumes 1: "Porder.chain Y"
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    34
  assumes 2: "!i. P (Y i)"
26451
f8a615f3bb31 avoid amiguity of Continuity.chain vs. Porder.chain;
wenzelm
parents: 26102
diff changeset
    35
  assumes 3: "(!!Y. [| Porder.chain Y; !i. P (Y i); !k. ? j. Fin k < #((Y j)::'a::flat stream)|]
27413
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
    36
  ==> P(LUB i. Y i))"
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
    37
  shows "P(LUB i. Y i)"
26838
7f7c6a9e083a Instantiated rule increasing_chain_adm_lemma in proof of flatstream_adm_lemma
berghofe
parents: 26451
diff changeset
    38
apply (rule increasing_chain_adm_lemma [of _ P, OF 1 2])
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    39
apply (erule 3, assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    40
apply (erule thin_rl)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    41
apply (rule allI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    42
apply (case_tac "!j. stream_finite (Y j)")
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    43
apply ( rule chain_incr)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    44
apply ( rule allI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    45
apply ( drule spec)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    46
apply ( safe)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    47
apply ( rule exI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    48
apply ( rule slen_strict_mono)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    49
apply (   erule spec)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    50
apply (  assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    51
apply ( assumption)
31084
f4db921165ce fixed HOLCF proofs
nipkow
parents: 27413
diff changeset
    52
apply (metis inat_ord_code(4) slen_infinite)
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    53
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    54
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    55
(* should be without reference to stream length? *)
26451
f8a615f3bb31 avoid amiguity of Continuity.chain vs. Porder.chain;
wenzelm
parents: 26102
diff changeset
    56
lemma flatstream_admI: "[|(!!Y. [| Porder.chain Y; !i. P (Y i); 
27413
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
    57
 !k. ? j. Fin k < #((Y j)::'a::flat stream)|] ==> P(LUB i. Y i))|]==> adm P"
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    58
apply (unfold adm_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    59
apply (intro strip)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    60
apply (erule (1) flatstream_adm_lemma)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    61
apply (fast)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    62
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    63
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    64
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    65
(* context (theory "Nat_InFinity");*)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    66
lemma ile_lemma: "Fin (i + j) <= x ==> Fin i <= x"
27101
864d29f11c9d slightly tuning of some proofs involving case distinction and induction on natural numbers and similar
haftmann
parents: 26838
diff changeset
    67
  by (rule order_trans) auto
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    68
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    69
lemma stream_monoP2I:
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    70
"!!X. stream_monoP F ==> !i. ? l. !x y. 
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    71
  Fin l <= #x --> (x::'a::flat stream) << y --> x:down_iterate F i --> y:down_iterate F i"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    72
apply (unfold stream_monoP_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    73
apply (safe)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    74
apply (rule_tac x="i*ia" in exI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    75
apply (induct_tac "ia")
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    76
apply ( simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    77
apply (simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    78
apply (intro strip)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    79
apply (erule allE, erule all_dupE, drule mp, erule ile_lemma)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    80
apply (drule_tac P="%x. x" in subst, assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    81
apply (erule allE, drule mp, rule ile_lemma) back
27101
864d29f11c9d slightly tuning of some proofs involving case distinction and induction on natural numbers and similar
haftmann
parents: 26838
diff changeset
    82
apply ( erule order_trans)
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    83
apply ( erule slen_mono)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    84
apply (erule ssubst)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    85
apply (safe)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    86
apply ( erule (2) ile_lemma [THEN slen_take_lemma3, THEN subst])
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    87
apply (erule allE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    88
apply (drule mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    89
apply ( erule slen_rt_mult)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    90
apply (erule allE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    91
apply (drule mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    92
apply (erule monofun_rt_mult)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    93
apply (drule (1) mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    94
apply (assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    95
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    96
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    97
lemma stream_monoP2_gfp_admI: "[| !i. ? l. !x y. 
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    98
 Fin l <= #x --> (x::'a::flat stream) << y --> x:down_iterate F i --> y:down_iterate F i;
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
    99
    down_cont F |] ==> adm (%x. x:gfp F)"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   100
apply (erule INTER_down_iterate_is_gfp [THEN ssubst]) (* cont *)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   101
apply (simp (no_asm))
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   102
apply (rule adm_lemmas)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   103
apply (rule flatstream_admI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   104
apply (erule allE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   105
apply (erule exE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   106
apply (erule allE, erule exE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   107
apply (erule allE, erule allE, drule mp) (* stream_monoP *)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   108
apply ( drule ileI1)
27101
864d29f11c9d slightly tuning of some proofs involving case distinction and induction on natural numbers and similar
haftmann
parents: 26838
diff changeset
   109
apply ( drule order_trans)
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   110
apply (  rule ile_iSuc)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   111
apply ( drule iSuc_ile_mono [THEN iffD1])
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   112
apply ( assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   113
apply (drule mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   114
apply ( erule is_ub_thelub)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   115
apply (fast)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   116
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   117
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   118
lemmas fstream_gfp_admI = stream_monoP2I [THEN stream_monoP2_gfp_admI]
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   119
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   120
lemma stream_antiP2I:
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   121
"!!X. [|stream_antiP (F::(('a::flat stream)set => ('a stream set)))|]
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   122
  ==> !i x y. x << y --> y:down_iterate F i --> x:down_iterate F i"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   123
apply (unfold stream_antiP_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   124
apply (rule allI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   125
apply (induct_tac "i")
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   126
apply ( simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   127
apply (simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   128
apply (intro strip)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   129
apply (erule allE, erule all_dupE, erule exE, erule exE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   130
apply (erule conjE)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   131
apply (case_tac "#x < Fin i")
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   132
apply ( fast)
26102
2ae572207783 fix proofs involving ile_def
huffman
parents: 24107
diff changeset
   133
apply (unfold linorder_not_less)
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   134
apply (drule (1) mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   135
apply (erule all_dupE, drule mp, rule refl_less)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   136
apply (erule ssubst)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   137
apply (erule allE, drule (1) mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   138
apply (drule_tac P="%x. x" in subst, assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   139
apply (erule conjE, rule conjI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   140
apply ( erule slen_take_lemma3 [THEN ssubst], assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   141
apply ( assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   142
apply (erule allE, erule allE, drule mp, erule monofun_rt_mult)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   143
apply (drule (1) mp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   144
apply (assumption)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   145
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   146
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   147
lemma stream_antiP2_non_gfp_admI:
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   148
"!!X. [|!i x y. x << y --> y:down_iterate F i --> x:down_iterate F i; down_cont F |] 
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   149
  ==> adm (%u. ~ u:gfp F)"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   150
apply (unfold adm_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   151
apply (simp add: INTER_down_iterate_is_gfp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   152
apply (fast dest!: is_ub_thelub)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   153
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   154
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   155
lemmas fstream_non_gfp_admI = stream_antiP2I [THEN stream_antiP2_non_gfp_admI]
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   156
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   157
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   158
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   159
(**new approach for adm********************************************************)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   160
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   161
section "antitonP"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   162
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   163
lemma antitonPD: "[| antitonP P; y:P; x<<y |] ==> x:P"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   164
apply (unfold antitonP_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   165
apply auto
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   166
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   167
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   168
lemma antitonPI: "!x y. y:P --> x<<y --> x:P ==> antitonP P"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   169
apply (unfold antitonP_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   170
apply (fast)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   171
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   172
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   173
lemma antitonP_adm_non_P: "antitonP P ==> adm (%u. u~:P)"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   174
apply (unfold adm_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   175
apply (auto dest: antitonPD elim: is_ub_thelub)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   176
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   177
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   178
lemma def_gfp_adm_nonP: "P \<equiv> gfp F \<Longrightarrow> {y. \<exists>x::'a::pcpo. y \<sqsubseteq> x \<and> x \<in> P} \<subseteq> F {y. \<exists>x. y \<sqsubseteq> x \<and> x \<in> P} \<Longrightarrow> 
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   179
  adm (\<lambda>u. u\<notin>P)"
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   180
apply (simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   181
apply (rule antitonP_adm_non_P)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   182
apply (rule antitonPI)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   183
apply (drule gfp_upperbound)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   184
apply (fast)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   185
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   186
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   187
lemma adm_set:
27413
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
   188
"{\<Squnion>i. Y i |Y. Porder.chain Y & (\<forall>i. Y i \<in> P)} \<subseteq> P \<Longrightarrow> adm (\<lambda>x. x\<in>P)"
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   189
apply (unfold adm_def)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   190
apply (fast)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   191
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   192
27413
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
   193
lemma def_gfp_admI: "P \<equiv> gfp F \<Longrightarrow> {\<Squnion>i. Y i |Y. Porder.chain Y \<and> (\<forall>i. Y i \<in> P)} \<subseteq> 
3154f3765cc7 replace lub (range Y) with (LUB i. Y i)
huffman
parents: 27101
diff changeset
   194
  F {\<Squnion>i. Y i |Y. Porder.chain Y \<and> (\<forall>i. Y i \<in> P)} \<Longrightarrow> adm (\<lambda>x. x\<in>P)"
19759
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   195
apply (simp)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   196
apply (rule adm_set)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   197
apply (erule gfp_upperbound)
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   198
done
2d0896653e7a removed legacy ML scripts
huffman
parents: 18075
diff changeset
   199
11350
4c55b020d6ee added FOCUS including the One-Element Buffer by Manfred Broy
oheimb
parents:
diff changeset
   200
end