src/HOL/Complete_Partial_Order.thy
author boehmes
Tue, 07 Dec 2010 14:54:31 +0100
changeset 41061 492f8fd35fc0
parent 40252 029400b6c893
child 46041 1e3ff542e83e
permissions -rw-r--r--
centralized handling of built-in types and constants for bitvectors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
40106
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     1
(* Title:    HOL/Complete_Partial_Order.thy
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     2
   Author:   Brian Huffman, Portland State University
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     3
   Author:   Alexander Krauss, TU Muenchen
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     4
*)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     5
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     6
header {* Chain-complete partial orders and their fixpoints *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     7
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     8
theory Complete_Partial_Order
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
     9
imports Product_Type
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    10
begin
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    11
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    12
subsection {* Monotone functions *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    13
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    14
text {* Dictionary-passing version of @{const Orderings.mono}. *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    15
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    16
definition monotone :: "('a \<Rightarrow> 'a \<Rightarrow> bool) \<Rightarrow> ('b \<Rightarrow> 'b \<Rightarrow> bool) \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> bool"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    17
where "monotone orda ordb f \<longleftrightarrow> (\<forall>x y. orda x y \<longrightarrow> ordb (f x) (f y))"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    18
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    19
lemma monotoneI[intro?]: "(\<And>x y. orda x y \<Longrightarrow> ordb (f x) (f y))
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    20
 \<Longrightarrow> monotone orda ordb f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    21
unfolding monotone_def by iprover
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    22
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    23
lemma monotoneD[dest?]: "monotone orda ordb f \<Longrightarrow> orda x y \<Longrightarrow> ordb (f x) (f y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    24
unfolding monotone_def by iprover
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    25
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    26
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    27
subsection {* Chains *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    28
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    29
text {* A chain is a totally-ordered set. Chains are parameterized over
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    30
  the order for maximal flexibility, since type classes are not enough.
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    31
*}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    32
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    33
definition
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    34
  chain :: "('a \<Rightarrow> 'a \<Rightarrow> bool) \<Rightarrow> 'a set \<Rightarrow> bool"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    35
where
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    36
  "chain ord S \<longleftrightarrow> (\<forall>x\<in>S. \<forall>y\<in>S. ord x y \<or> ord y x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    37
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    38
lemma chainI:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    39
  assumes "\<And>x y. x \<in> S \<Longrightarrow> y \<in> S \<Longrightarrow> ord x y \<or> ord y x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    40
  shows "chain ord S"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    41
using assms unfolding chain_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    42
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    43
lemma chainD:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    44
  assumes "chain ord S" and "x \<in> S" and "y \<in> S"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    45
  shows "ord x y \<or> ord y x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    46
using assms unfolding chain_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    47
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    48
lemma chainE:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    49
  assumes "chain ord S" and "x \<in> S" and "y \<in> S"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    50
  obtains "ord x y" | "ord y x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    51
using assms unfolding chain_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    52
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    53
subsection {* Chain-complete partial orders *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    54
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    55
text {*
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    56
  A ccpo has a least upper bound for any chain.  In particular, the
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    57
  empty set is a chain, so every ccpo must have a bottom element.
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    58
*}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    59
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    60
class ccpo = order +
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    61
  fixes lub :: "'a set \<Rightarrow> 'a"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    62
  assumes lub_upper: "chain (op \<le>) A \<Longrightarrow> x \<in> A \<Longrightarrow> x \<le> lub A"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    63
  assumes lub_least: "chain (op \<le>) A \<Longrightarrow> (\<And>x. x \<in> A \<Longrightarrow> x \<le> z) \<Longrightarrow> lub A \<le> z"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    64
begin
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    65
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    66
subsection {* Transfinite iteration of a function *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    67
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    68
inductive_set iterates :: "('a \<Rightarrow> 'a) \<Rightarrow> 'a set"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    69
for f :: "'a \<Rightarrow> 'a"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    70
where
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    71
  step: "x \<in> iterates f \<Longrightarrow> f x \<in> iterates f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    72
| lub: "chain (op \<le>) M \<Longrightarrow> \<forall>x\<in>M. x \<in> iterates f \<Longrightarrow> lub M \<in> iterates f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    73
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    74
lemma iterates_le_f:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    75
  "x \<in> iterates f \<Longrightarrow> monotone (op \<le>) (op \<le>) f \<Longrightarrow> x \<le> f x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    76
by (induct x rule: iterates.induct)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    77
  (force dest: monotoneD intro!: lub_upper lub_least)+
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    78
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    79
lemma chain_iterates:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    80
  assumes f: "monotone (op \<le>) (op \<le>) f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    81
  shows "chain (op \<le>) (iterates f)" (is "chain _ ?C")
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    82
proof (rule chainI)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    83
  fix x y assume "x \<in> ?C" "y \<in> ?C"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    84
  then show "x \<le> y \<or> y \<le> x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    85
  proof (induct x arbitrary: y rule: iterates.induct)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    86
    fix x y assume y: "y \<in> ?C"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    87
    and IH: "\<And>z. z \<in> ?C \<Longrightarrow> x \<le> z \<or> z \<le> x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    88
    from y show "f x \<le> y \<or> y \<le> f x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    89
    proof (induct y rule: iterates.induct)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    90
      case (step y) with IH f show ?case by (auto dest: monotoneD)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    91
    next
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    92
      case (lub M)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    93
      then have chM: "chain (op \<le>) M"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    94
        and IH': "\<And>z. z \<in> M \<Longrightarrow> f x \<le> z \<or> z \<le> f x" by auto
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    95
      show "f x \<le> lub M \<or> lub M \<le> f x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    96
      proof (cases "\<exists>z\<in>M. f x \<le> z")
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    97
        case True then have "f x \<le> lub M"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    98
          apply rule
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
    99
          apply (erule order_trans)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   100
          by (rule lub_upper[OF chM])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   101
        thus ?thesis ..
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   102
      next
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   103
        case False with IH'
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   104
        show ?thesis by (auto intro: lub_least[OF chM])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   105
      qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   106
    qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   107
  next
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   108
    case (lub M y)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   109
    show ?case
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   110
    proof (cases "\<exists>x\<in>M. y \<le> x")
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   111
      case True then have "y \<le> lub M"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   112
        apply rule
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   113
        apply (erule order_trans)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   114
        by (rule lub_upper[OF lub(1)])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   115
      thus ?thesis ..
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   116
    next
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   117
      case False with lub
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   118
      show ?thesis by (auto intro: lub_least)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   119
    qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   120
  qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   121
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   122
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   123
subsection {* Fixpoint combinator *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   124
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   125
definition
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   126
  fixp :: "('a \<Rightarrow> 'a) \<Rightarrow> 'a"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   127
where
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   128
  "fixp f = lub (iterates f)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   129
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   130
lemma iterates_fixp:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   131
  assumes f: "monotone (op \<le>) (op \<le>) f" shows "fixp f \<in> iterates f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   132
unfolding fixp_def
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   133
by (simp add: iterates.lub chain_iterates f)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   134
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   135
lemma fixp_unfold:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   136
  assumes f: "monotone (op \<le>) (op \<le>) f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   137
  shows "fixp f = f (fixp f)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   138
proof (rule antisym)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   139
  show "fixp f \<le> f (fixp f)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   140
    by (intro iterates_le_f iterates_fixp f)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   141
  have "f (fixp f) \<le> lub (iterates f)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   142
    by (intro lub_upper chain_iterates f iterates.step iterates_fixp)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   143
  thus "f (fixp f) \<le> fixp f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   144
    unfolding fixp_def .
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   145
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   146
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   147
lemma fixp_lowerbound:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   148
  assumes f: "monotone (op \<le>) (op \<le>) f" and z: "f z \<le> z" shows "fixp f \<le> z"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   149
unfolding fixp_def
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   150
proof (rule lub_least[OF chain_iterates[OF f]])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   151
  fix x assume "x \<in> iterates f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   152
  thus "x \<le> z"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   153
  proof (induct x rule: iterates.induct)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   154
    fix x assume "x \<le> z" with f have "f x \<le> f z" by (rule monotoneD)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   155
    also note z finally show "f x \<le> z" .
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   156
  qed (auto intro: lub_least)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   157
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   158
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   159
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   160
subsection {* Fixpoint induction *}
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   161
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   162
definition
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   163
  admissible :: "('a \<Rightarrow> bool) \<Rightarrow> bool"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   164
where
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   165
  "admissible P = (\<forall>A. chain (op \<le>) A \<longrightarrow> (\<forall>x\<in>A. P x) \<longrightarrow> P (lub A))"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   166
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   167
lemma admissibleI:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   168
  assumes "\<And>A. chain (op \<le>) A \<Longrightarrow> \<forall>x\<in>A. P x \<Longrightarrow> P (lub A)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   169
  shows "admissible P"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   170
using assms unfolding admissible_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   171
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   172
lemma admissibleD:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   173
  assumes "admissible P"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   174
  assumes "chain (op \<le>) A"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   175
  assumes "\<And>x. x \<in> A \<Longrightarrow> P x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   176
  shows "P (lub A)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   177
using assms by (auto simp: admissible_def)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   178
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   179
lemma fixp_induct:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   180
  assumes adm: "admissible P"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   181
  assumes mono: "monotone (op \<le>) (op \<le>) f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   182
  assumes step: "\<And>x. P x \<Longrightarrow> P (f x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   183
  shows "P (fixp f)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   184
unfolding fixp_def using adm chain_iterates[OF mono]
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   185
proof (rule admissibleD)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   186
  fix x assume "x \<in> iterates f"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   187
  thus "P x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   188
    by (induct rule: iterates.induct)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   189
      (auto intro: step admissibleD adm)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   190
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   191
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   192
lemma admissible_True: "admissible (\<lambda>x. True)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   193
unfolding admissible_def by simp
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   194
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   195
lemma admissible_False: "\<not> admissible (\<lambda>x. False)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   196
unfolding admissible_def chain_def by simp
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   197
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   198
lemma admissible_const: "admissible (\<lambda>x. t) = t"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   199
by (cases t, simp_all add: admissible_True admissible_False)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   200
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   201
lemma admissible_conj:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   202
  assumes "admissible (\<lambda>x. P x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   203
  assumes "admissible (\<lambda>x. Q x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   204
  shows "admissible (\<lambda>x. P x \<and> Q x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   205
using assms unfolding admissible_def by simp
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   206
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   207
lemma admissible_all:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   208
  assumes "\<And>y. admissible (\<lambda>x. P x y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   209
  shows "admissible (\<lambda>x. \<forall>y. P x y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   210
using assms unfolding admissible_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   211
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   212
lemma admissible_ball:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   213
  assumes "\<And>y. y \<in> A \<Longrightarrow> admissible (\<lambda>x. P x y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   214
  shows "admissible (\<lambda>x. \<forall>y\<in>A. P x y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   215
using assms unfolding admissible_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   216
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   217
lemma chain_compr: "chain (op \<le>) A \<Longrightarrow> chain (op \<le>) {x \<in> A. P x}"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   218
unfolding chain_def by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   219
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   220
lemma admissible_disj_lemma:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   221
  assumes A: "chain (op \<le>)A"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   222
  assumes P: "\<forall>x\<in>A. \<exists>y\<in>A. x \<le> y \<and> P y"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   223
  shows "lub A = lub {x \<in> A. P x}"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   224
proof (rule antisym)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   225
  have *: "chain (op \<le>) {x \<in> A. P x}"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   226
    by (rule chain_compr [OF A])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   227
  show "lub A \<le> lub {x \<in> A. P x}"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   228
    apply (rule lub_least [OF A])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   229
    apply (drule P [rule_format], clarify)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   230
    apply (erule order_trans)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   231
    apply (simp add: lub_upper [OF *])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   232
    done
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   233
  show "lub {x \<in> A. P x} \<le> lub A"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   234
    apply (rule lub_least [OF *])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   235
    apply clarify
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   236
    apply (simp add: lub_upper [OF A])
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   237
    done
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   238
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   239
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   240
lemma admissible_disj:
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   241
  fixes P Q :: "'a \<Rightarrow> bool"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   242
  assumes P: "admissible (\<lambda>x. P x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   243
  assumes Q: "admissible (\<lambda>x. Q x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   244
  shows "admissible (\<lambda>x. P x \<or> Q x)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   245
proof (rule admissibleI)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   246
  fix A :: "'a set" assume A: "chain (op \<le>) A"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   247
  assume "\<forall>x\<in>A. P x \<or> Q x"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   248
  hence "(\<forall>x\<in>A. \<exists>y\<in>A. x \<le> y \<and> P y) \<or> (\<forall>x\<in>A. \<exists>y\<in>A. x \<le> y \<and> Q y)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   249
    using chainD[OF A] by blast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   250
  hence "lub A = lub {x \<in> A. P x} \<or> lub A = lub {x \<in> A. Q x}"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   251
    using admissible_disj_lemma [OF A] by fast
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   252
  thus "P (lub A) \<or> Q (lub A)"
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   253
    apply (rule disjE, simp_all)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   254
    apply (rule disjI1, rule admissibleD [OF P chain_compr [OF A]], simp)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   255
    apply (rule disjI2, rule admissibleD [OF Q chain_compr [OF A]], simp)
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   256
    done
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   257
qed
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   258
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   259
end
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   260
40252
029400b6c893 hide_const various constants, in particular to avoid ugly qualifiers in HOLCF
krauss
parents: 40106
diff changeset
   261
hide_const (open) lub iterates fixp admissible
40106
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   262
c58951943cba Complete_Partial_Order.thy: complete partial orders over arbitrary chains, with fixpoint theorem
krauss
parents:
diff changeset
   263
end