spell conditional_ly_-complete lattices correct
authorhoelzl
Wed Apr 24 13:28:30 2013 +0200 (2013-04-24)
changeset 517739328c6681f3c
parent 51772 d2b265ebc1fa
child 51774 916271d52466
spell conditional_ly_-complete lattices correct
NEWS
src/HOL/Conditional_Complete_Lattices.thy
src/HOL/Conditionally_Complete_Lattices.thy
src/HOL/Multivariate_Analysis/Topology_Euclidean_Space.thy
src/HOL/Real.thy
src/HOL/Topological_Spaces.thy
     1.1 --- a/NEWS	Thu Apr 25 10:31:10 2013 +0200
     1.2 +++ b/NEWS	Wed Apr 24 13:28:30 2013 +0200
     1.3 @@ -99,13 +99,13 @@
     1.4  Code_Target_Nat and Code_Target_Numeral.  See the tutorial on
     1.5  code generation for details.  INCOMPATIBILITY.
     1.6  
     1.7 -* Introduce type class "conditional_complete_lattice": Like a complete
     1.8 +* Introduce type class "conditionally_complete_lattice": Like a complete
     1.9    lattice but does not assume the existence of the top and bottom elements.
    1.10    Allows to generalize some lemmas about reals and extended reals.
    1.11    Removed SupInf and replaced it by the instantiation of
    1.12 -  conditional_complete_lattice for real. Renamed lemmas about conditional
    1.13 -  complete lattice from Sup_... to cSup_... and from Inf_... to
    1.14 -  cInf_... to avoid hidding of similar complete lattice lemmas.
    1.15 +  conditionally_complete_lattice for real. Renamed lemmas about
    1.16 +  conditionally-complete lattice from Sup_... to cSup_... and from Inf_...
    1.17 +  to cInf_... to avoid hidding of similar complete lattice lemmas.
    1.18  INCOMPATIBILITY.
    1.19  
    1.20  * Introduce type classes "no_top" and "no_bot" for orderings without top
    1.21 @@ -133,7 +133,7 @@
    1.22  
    1.23   - connected from Multivariate_Analysis. Use it to prove the
    1.24     intermediate value theorem. Show connectedness of intervals on order
    1.25 -   topologies which are a inner dense, conditional complete linorder.
    1.26 +   topologies which are a inner dense, conditionally-complete linorder.
    1.27  
    1.28   - first_countable_topology from Multivariate_Analysis. Is used to
    1.29     show equivalence of properties on the neighbourhood filter of x and on
     2.1 --- a/src/HOL/Conditional_Complete_Lattices.thy	Thu Apr 25 10:31:10 2013 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,295 +0,0 @@
     2.4 -(*  Title:      HOL/Conditional_Complete_Lattices.thy
     2.5 -    Author:     Amine Chaieb and L C Paulson, University of Cambridge
     2.6 -    Author:     Johannes Hölzl, TU München
     2.7 -*)
     2.8 -
     2.9 -header {* Conditional Complete Lattices *}
    2.10 -
    2.11 -theory Conditional_Complete_Lattices
    2.12 -imports Main Lubs
    2.13 -begin
    2.14 -
    2.15 -lemma Sup_fin_eq_Max: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup_fin X = Max X"
    2.16 -  by (induct X rule: finite_ne_induct) (simp_all add: sup_max)
    2.17 -
    2.18 -lemma Inf_fin_eq_Min: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf_fin X = Min X"
    2.19 -  by (induct X rule: finite_ne_induct) (simp_all add: inf_min)
    2.20 -
    2.21 -text {*
    2.22 -
    2.23 -To avoid name classes with the @{class complete_lattice}-class we prefix @{const Sup} and
    2.24 -@{const Inf} in theorem names with c.
    2.25 -
    2.26 -*}
    2.27 -
    2.28 -class conditional_complete_lattice = lattice + Sup + Inf +
    2.29 -  assumes cInf_lower: "x \<in> X \<Longrightarrow> (\<And>a. a \<in> X \<Longrightarrow> z \<le> a) \<Longrightarrow> Inf X \<le> x"
    2.30 -    and cInf_greatest: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> z \<le> Inf X"
    2.31 -  assumes cSup_upper: "x \<in> X \<Longrightarrow> (\<And>a. a \<in> X \<Longrightarrow> a \<le> z) \<Longrightarrow> x \<le> Sup X"
    2.32 -    and cSup_least: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup X \<le> z"
    2.33 -begin
    2.34 -
    2.35 -lemma cSup_eq_maximum: (*REAL_SUP_MAX in HOL4*)
    2.36 -  "z \<in> X \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup X = z"
    2.37 -  by (blast intro: antisym cSup_upper cSup_least)
    2.38 -
    2.39 -lemma cInf_eq_minimum: (*REAL_INF_MIN in HOL4*)
    2.40 -  "z \<in> X \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X = z"
    2.41 -  by (intro antisym cInf_lower[of z X z] cInf_greatest[of X z]) auto
    2.42 -
    2.43 -lemma cSup_le_iff: "S \<noteq> {} \<Longrightarrow> (\<And>a. a \<in> S \<Longrightarrow> a \<le> z) \<Longrightarrow> Sup S \<le> a \<longleftrightarrow> (\<forall>x\<in>S. x \<le> a)"
    2.44 -  by (metis order_trans cSup_upper cSup_least)
    2.45 -
    2.46 -lemma le_cInf_iff: "S \<noteq> {} \<Longrightarrow> (\<And>a. a \<in> S \<Longrightarrow> z \<le> a) \<Longrightarrow> a \<le> Inf S \<longleftrightarrow> (\<forall>x\<in>S. a \<le> x)"
    2.47 -  by (metis order_trans cInf_lower cInf_greatest)
    2.48 -
    2.49 -lemma cSup_singleton [simp]: "Sup {x} = x"
    2.50 -  by (intro cSup_eq_maximum) auto
    2.51 -
    2.52 -lemma cInf_singleton [simp]: "Inf {x} = x"
    2.53 -  by (intro cInf_eq_minimum) auto
    2.54 -
    2.55 -lemma cSup_upper2: (*REAL_IMP_LE_SUP in HOL4*)
    2.56 -  "x \<in> X \<Longrightarrow> y \<le> x \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> y \<le> Sup X"
    2.57 -  by (metis cSup_upper order_trans)
    2.58 - 
    2.59 -lemma cInf_lower2:
    2.60 -  "x \<in> X \<Longrightarrow> x \<le> y \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X \<le> y"
    2.61 -  by (metis cInf_lower order_trans)
    2.62 -
    2.63 -lemma cSup_upper_EX: "x \<in> X \<Longrightarrow> \<exists>z. \<forall>x. x \<in> X \<longrightarrow> x \<le> z \<Longrightarrow> x \<le> Sup X"
    2.64 -  by (blast intro: cSup_upper)
    2.65 -
    2.66 -lemma cInf_lower_EX:  "x \<in> X \<Longrightarrow> \<exists>z. \<forall>x. x \<in> X \<longrightarrow> z \<le> x \<Longrightarrow> Inf X \<le> x"
    2.67 -  by (blast intro: cInf_lower)
    2.68 -
    2.69 -lemma cSup_eq_non_empty:
    2.70 -  assumes 1: "X \<noteq> {}"
    2.71 -  assumes 2: "\<And>x. x \<in> X \<Longrightarrow> x \<le> a"
    2.72 -  assumes 3: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> x \<le> y) \<Longrightarrow> a \<le> y"
    2.73 -  shows "Sup X = a"
    2.74 -  by (intro 3 1 antisym cSup_least) (auto intro: 2 1 cSup_upper)
    2.75 -
    2.76 -lemma cInf_eq_non_empty:
    2.77 -  assumes 1: "X \<noteq> {}"
    2.78 -  assumes 2: "\<And>x. x \<in> X \<Longrightarrow> a \<le> x"
    2.79 -  assumes 3: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> y \<le> x) \<Longrightarrow> y \<le> a"
    2.80 -  shows "Inf X = a"
    2.81 -  by (intro 3 1 antisym cInf_greatest) (auto intro: 2 1 cInf_lower)
    2.82 -
    2.83 -lemma cInf_cSup: "S \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> S \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf S = Sup {x. \<forall>s\<in>S. x \<le> s}"
    2.84 -  by (rule cInf_eq_non_empty) (auto intro: cSup_upper cSup_least)
    2.85 -
    2.86 -lemma cSup_cInf: "S \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> S \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup S = Inf {x. \<forall>s\<in>S. s \<le> x}"
    2.87 -  by (rule cSup_eq_non_empty) (auto intro: cInf_lower cInf_greatest)
    2.88 -
    2.89 -lemma cSup_insert: 
    2.90 -  assumes x: "X \<noteq> {}"
    2.91 -      and z: "\<And>x. x \<in> X \<Longrightarrow> x \<le> z"
    2.92 -  shows "Sup (insert a X) = sup a (Sup X)"
    2.93 -proof (intro cSup_eq_non_empty)
    2.94 -  fix y assume "\<And>x. x \<in> insert a X \<Longrightarrow> x \<le> y" with x show "sup a (Sup X) \<le> y" by (auto intro: cSup_least)
    2.95 -qed (auto intro: le_supI2 z cSup_upper)
    2.96 -
    2.97 -lemma cInf_insert: 
    2.98 -  assumes x: "X \<noteq> {}"
    2.99 -      and z: "\<And>x. x \<in> X \<Longrightarrow> z \<le> x"
   2.100 -  shows "Inf (insert a X) = inf a (Inf X)"
   2.101 -proof (intro cInf_eq_non_empty)
   2.102 -  fix y assume "\<And>x. x \<in> insert a X \<Longrightarrow> y \<le> x" with x show "y \<le> inf a (Inf X)" by (auto intro: cInf_greatest)
   2.103 -qed (auto intro: le_infI2 z cInf_lower)
   2.104 -
   2.105 -lemma cSup_insert_If: 
   2.106 -  "(\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup (insert a X) = (if X = {} then a else sup a (Sup X))"
   2.107 -  using cSup_insert[of X z] by simp
   2.108 -
   2.109 -lemma cInf_insert_if: 
   2.110 -  "(\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf (insert a X) = (if X = {} then a else inf a (Inf X))"
   2.111 -  using cInf_insert[of X z] by simp
   2.112 -
   2.113 -lemma le_cSup_finite: "finite X \<Longrightarrow> x \<in> X \<Longrightarrow> x \<le> Sup X"
   2.114 -proof (induct X arbitrary: x rule: finite_induct)
   2.115 -  case (insert x X y) then show ?case
   2.116 -    apply (cases "X = {}")
   2.117 -    apply simp
   2.118 -    apply (subst cSup_insert[of _ "Sup X"])
   2.119 -    apply (auto intro: le_supI2)
   2.120 -    done
   2.121 -qed simp
   2.122 -
   2.123 -lemma cInf_le_finite: "finite X \<Longrightarrow> x \<in> X \<Longrightarrow> Inf X \<le> x"
   2.124 -proof (induct X arbitrary: x rule: finite_induct)
   2.125 -  case (insert x X y) then show ?case
   2.126 -    apply (cases "X = {}")
   2.127 -    apply simp
   2.128 -    apply (subst cInf_insert[of _ "Inf X"])
   2.129 -    apply (auto intro: le_infI2)
   2.130 -    done
   2.131 -qed simp
   2.132 -
   2.133 -lemma cSup_eq_Sup_fin: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup X = Sup_fin X"
   2.134 -proof (induct X rule: finite_ne_induct)
   2.135 -  case (insert x X) then show ?case
   2.136 -    using cSup_insert[of X "Sup_fin X" x] le_cSup_finite[of X] by simp
   2.137 -qed simp
   2.138 -
   2.139 -lemma cInf_eq_Inf_fin: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf X = Inf_fin X"
   2.140 -proof (induct X rule: finite_ne_induct)
   2.141 -  case (insert x X) then show ?case
   2.142 -    using cInf_insert[of X "Inf_fin X" x] cInf_le_finite[of X] by simp
   2.143 -qed simp
   2.144 -
   2.145 -lemma cSup_atMost[simp]: "Sup {..x} = x"
   2.146 -  by (auto intro!: cSup_eq_maximum)
   2.147 -
   2.148 -lemma cSup_greaterThanAtMost[simp]: "y < x \<Longrightarrow> Sup {y<..x} = x"
   2.149 -  by (auto intro!: cSup_eq_maximum)
   2.150 -
   2.151 -lemma cSup_atLeastAtMost[simp]: "y \<le> x \<Longrightarrow> Sup {y..x} = x"
   2.152 -  by (auto intro!: cSup_eq_maximum)
   2.153 -
   2.154 -lemma cInf_atLeast[simp]: "Inf {x..} = x"
   2.155 -  by (auto intro!: cInf_eq_minimum)
   2.156 -
   2.157 -lemma cInf_atLeastLessThan[simp]: "y < x \<Longrightarrow> Inf {y..<x} = y"
   2.158 -  by (auto intro!: cInf_eq_minimum)
   2.159 -
   2.160 -lemma cInf_atLeastAtMost[simp]: "y \<le> x \<Longrightarrow> Inf {y..x} = y"
   2.161 -  by (auto intro!: cInf_eq_minimum)
   2.162 -
   2.163 -end
   2.164 -
   2.165 -instance complete_lattice \<subseteq> conditional_complete_lattice
   2.166 -  by default (auto intro: Sup_upper Sup_least Inf_lower Inf_greatest)
   2.167 -
   2.168 -lemma isLub_cSup: 
   2.169 -  "(S::'a :: conditional_complete_lattice set) \<noteq> {} \<Longrightarrow> (\<exists>b. S *<= b) \<Longrightarrow> isLub UNIV S (Sup S)"
   2.170 -  by  (auto simp add: isLub_def setle_def leastP_def isUb_def
   2.171 -            intro!: setgeI intro: cSup_upper cSup_least)
   2.172 -
   2.173 -lemma cSup_eq:
   2.174 -  fixes a :: "'a :: {conditional_complete_lattice, no_bot}"
   2.175 -  assumes upper: "\<And>x. x \<in> X \<Longrightarrow> x \<le> a"
   2.176 -  assumes least: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> x \<le> y) \<Longrightarrow> a \<le> y"
   2.177 -  shows "Sup X = a"
   2.178 -proof cases
   2.179 -  assume "X = {}" with lt_ex[of a] least show ?thesis by (auto simp: less_le_not_le)
   2.180 -qed (intro cSup_eq_non_empty assms)
   2.181 -
   2.182 -lemma cInf_eq:
   2.183 -  fixes a :: "'a :: {conditional_complete_lattice, no_top}"
   2.184 -  assumes upper: "\<And>x. x \<in> X \<Longrightarrow> a \<le> x"
   2.185 -  assumes least: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> y \<le> x) \<Longrightarrow> y \<le> a"
   2.186 -  shows "Inf X = a"
   2.187 -proof cases
   2.188 -  assume "X = {}" with gt_ex[of a] least show ?thesis by (auto simp: less_le_not_le)
   2.189 -qed (intro cInf_eq_non_empty assms)
   2.190 -
   2.191 -lemma cSup_le: "(S::'a::conditional_complete_lattice set) \<noteq> {} \<Longrightarrow> S *<= b \<Longrightarrow> Sup S \<le> b"
   2.192 -  by (metis cSup_least setle_def)
   2.193 -
   2.194 -lemma cInf_ge: "(S::'a :: conditional_complete_lattice set) \<noteq> {} \<Longrightarrow> b <=* S \<Longrightarrow> Inf S \<ge> b"
   2.195 -  by (metis cInf_greatest setge_def)
   2.196 -
   2.197 -class conditional_complete_linorder = conditional_complete_lattice + linorder
   2.198 -begin
   2.199 -
   2.200 -lemma less_cSup_iff : (*REAL_SUP_LE in HOL4*)
   2.201 -  "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> y < Sup X \<longleftrightarrow> (\<exists>x\<in>X. y < x)"
   2.202 -  by (rule iffI) (metis cSup_least not_less, metis cSup_upper less_le_trans)
   2.203 -
   2.204 -lemma cInf_less_iff: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X < y \<longleftrightarrow> (\<exists>x\<in>X. x < y)"
   2.205 -  by (rule iffI) (metis cInf_greatest not_less, metis cInf_lower le_less_trans)
   2.206 -
   2.207 -lemma less_cSupE:
   2.208 -  assumes "y < Sup X" "X \<noteq> {}" obtains x where "x \<in> X" "y < x"
   2.209 -  by (metis cSup_least assms not_le that)
   2.210 -
   2.211 -lemma less_cSupD:
   2.212 -  "X \<noteq> {} \<Longrightarrow> z < Sup X \<Longrightarrow> \<exists>x\<in>X. z < x"
   2.213 -  by (metis less_cSup_iff not_leE)
   2.214 -
   2.215 -lemma cInf_lessD:
   2.216 -  "X \<noteq> {} \<Longrightarrow> Inf X < z \<Longrightarrow> \<exists>x\<in>X. x < z"
   2.217 -  by (metis cInf_less_iff not_leE)
   2.218 -
   2.219 -lemma complete_interval:
   2.220 -  assumes "a < b" and "P a" and "\<not> P b"
   2.221 -  shows "\<exists>c. a \<le> c \<and> c \<le> b \<and> (\<forall>x. a \<le> x \<and> x < c \<longrightarrow> P x) \<and>
   2.222 -             (\<forall>d. (\<forall>x. a \<le> x \<and> x < d \<longrightarrow> P x) \<longrightarrow> d \<le> c)"
   2.223 -proof (rule exI [where x = "Sup {d. \<forall>x. a \<le> x & x < d --> P x}"], auto)
   2.224 -  show "a \<le> Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   2.225 -    by (rule cSup_upper [where z=b], auto)
   2.226 -       (metis `a < b` `\<not> P b` linear less_le)
   2.227 -next
   2.228 -  show "Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c} \<le> b"
   2.229 -    apply (rule cSup_least) 
   2.230 -    apply auto
   2.231 -    apply (metis less_le_not_le)
   2.232 -    apply (metis `a<b` `~ P b` linear less_le)
   2.233 -    done
   2.234 -next
   2.235 -  fix x
   2.236 -  assume x: "a \<le> x" and lt: "x < Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   2.237 -  show "P x"
   2.238 -    apply (rule less_cSupE [OF lt], auto)
   2.239 -    apply (metis less_le_not_le)
   2.240 -    apply (metis x) 
   2.241 -    done
   2.242 -next
   2.243 -  fix d
   2.244 -    assume 0: "\<forall>x. a \<le> x \<and> x < d \<longrightarrow> P x"
   2.245 -    thus "d \<le> Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   2.246 -      by (rule_tac z="b" in cSup_upper, auto) 
   2.247 -         (metis `a<b` `~ P b` linear less_le)
   2.248 -qed
   2.249 -
   2.250 -end
   2.251 -
   2.252 -lemma cSup_bounds:
   2.253 -  fixes S :: "'a :: conditional_complete_lattice set"
   2.254 -  assumes Se: "S \<noteq> {}" and l: "a <=* S" and u: "S *<= b"
   2.255 -  shows "a \<le> Sup S \<and> Sup S \<le> b"
   2.256 -proof-
   2.257 -  from isLub_cSup[OF Se] u have lub: "isLub UNIV S (Sup S)" by blast
   2.258 -  hence b: "Sup S \<le> b" using u 
   2.259 -    by (auto simp add: isLub_def leastP_def setle_def setge_def isUb_def) 
   2.260 -  from Se obtain y where y: "y \<in> S" by blast
   2.261 -  from lub l have "a \<le> Sup S"
   2.262 -    by (auto simp add: isLub_def leastP_def setle_def setge_def isUb_def)
   2.263 -       (metis le_iff_sup le_sup_iff y)
   2.264 -  with b show ?thesis by blast
   2.265 -qed
   2.266 -
   2.267 -
   2.268 -lemma cSup_unique: "(S::'a :: {conditional_complete_linorder, no_bot} set) *<= b \<Longrightarrow> (\<forall>b'<b. \<exists>x\<in>S. b' < x) \<Longrightarrow> Sup S = b"
   2.269 -  by (rule cSup_eq) (auto simp: not_le[symmetric] setle_def)
   2.270 -
   2.271 -lemma cInf_unique: "b <=* (S::'a :: {conditional_complete_linorder, no_top} set) \<Longrightarrow> (\<forall>b'>b. \<exists>x\<in>S. b' > x) \<Longrightarrow> Inf S = b"
   2.272 -  by (rule cInf_eq) (auto simp: not_le[symmetric] setge_def)
   2.273 -
   2.274 -lemma cSup_eq_Max: "finite (X::'a::conditional_complete_linorder set) \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup X = Max X"
   2.275 -  using cSup_eq_Sup_fin[of X] Sup_fin_eq_Max[of X] by simp
   2.276 -
   2.277 -lemma cInf_eq_Min: "finite (X::'a::conditional_complete_linorder set) \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf X = Min X"
   2.278 -  using cInf_eq_Inf_fin[of X] Inf_fin_eq_Min[of X] by simp
   2.279 -
   2.280 -lemma cSup_lessThan[simp]: "Sup {..<x::'a::{conditional_complete_linorder, dense_linorder}} = x"
   2.281 -  by (auto intro!: cSup_eq_non_empty intro: dense_le)
   2.282 -
   2.283 -lemma cSup_greaterThanLessThan[simp]: "y < x \<Longrightarrow> Sup {y<..<x::'a::{conditional_complete_linorder, dense_linorder}} = x"
   2.284 -  by (auto intro!: cSup_eq intro: dense_le_bounded)
   2.285 -
   2.286 -lemma cSup_atLeastLessThan[simp]: "y < x \<Longrightarrow> Sup {y..<x::'a::{conditional_complete_linorder, dense_linorder}} = x"
   2.287 -  by (auto intro!: cSup_eq intro: dense_le_bounded)
   2.288 -
   2.289 -lemma cInf_greaterThan[simp]: "Inf {x::'a::{conditional_complete_linorder, dense_linorder} <..} = x"
   2.290 -  by (auto intro!: cInf_eq intro: dense_ge)
   2.291 -
   2.292 -lemma cInf_greaterThanAtMost[simp]: "y < x \<Longrightarrow> Inf {y<..x::'a::{conditional_complete_linorder, dense_linorder}} = y"
   2.293 -  by (auto intro!: cInf_eq intro: dense_ge_bounded)
   2.294 -
   2.295 -lemma cInf_greaterThanLessThan[simp]: "y < x \<Longrightarrow> Inf {y<..<x::'a::{conditional_complete_linorder, dense_linorder}} = y"
   2.296 -  by (auto intro!: cInf_eq intro: dense_ge_bounded)
   2.297 -
   2.298 -end
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/src/HOL/Conditionally_Complete_Lattices.thy	Wed Apr 24 13:28:30 2013 +0200
     3.3 @@ -0,0 +1,295 @@
     3.4 +(*  Title:      HOL/Conditional_Complete_Lattices.thy
     3.5 +    Author:     Amine Chaieb and L C Paulson, University of Cambridge
     3.6 +    Author:     Johannes Hölzl, TU München
     3.7 +*)
     3.8 +
     3.9 +header {* Conditionally-complete Lattices *}
    3.10 +
    3.11 +theory Conditionally_Complete_Lattices
    3.12 +imports Main Lubs
    3.13 +begin
    3.14 +
    3.15 +lemma Sup_fin_eq_Max: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup_fin X = Max X"
    3.16 +  by (induct X rule: finite_ne_induct) (simp_all add: sup_max)
    3.17 +
    3.18 +lemma Inf_fin_eq_Min: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf_fin X = Min X"
    3.19 +  by (induct X rule: finite_ne_induct) (simp_all add: inf_min)
    3.20 +
    3.21 +text {*
    3.22 +
    3.23 +To avoid name classes with the @{class complete_lattice}-class we prefix @{const Sup} and
    3.24 +@{const Inf} in theorem names with c.
    3.25 +
    3.26 +*}
    3.27 +
    3.28 +class conditionally_complete_lattice = lattice + Sup + Inf +
    3.29 +  assumes cInf_lower: "x \<in> X \<Longrightarrow> (\<And>a. a \<in> X \<Longrightarrow> z \<le> a) \<Longrightarrow> Inf X \<le> x"
    3.30 +    and cInf_greatest: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> z \<le> Inf X"
    3.31 +  assumes cSup_upper: "x \<in> X \<Longrightarrow> (\<And>a. a \<in> X \<Longrightarrow> a \<le> z) \<Longrightarrow> x \<le> Sup X"
    3.32 +    and cSup_least: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup X \<le> z"
    3.33 +begin
    3.34 +
    3.35 +lemma cSup_eq_maximum: (*REAL_SUP_MAX in HOL4*)
    3.36 +  "z \<in> X \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup X = z"
    3.37 +  by (blast intro: antisym cSup_upper cSup_least)
    3.38 +
    3.39 +lemma cInf_eq_minimum: (*REAL_INF_MIN in HOL4*)
    3.40 +  "z \<in> X \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X = z"
    3.41 +  by (intro antisym cInf_lower[of z X z] cInf_greatest[of X z]) auto
    3.42 +
    3.43 +lemma cSup_le_iff: "S \<noteq> {} \<Longrightarrow> (\<And>a. a \<in> S \<Longrightarrow> a \<le> z) \<Longrightarrow> Sup S \<le> a \<longleftrightarrow> (\<forall>x\<in>S. x \<le> a)"
    3.44 +  by (metis order_trans cSup_upper cSup_least)
    3.45 +
    3.46 +lemma le_cInf_iff: "S \<noteq> {} \<Longrightarrow> (\<And>a. a \<in> S \<Longrightarrow> z \<le> a) \<Longrightarrow> a \<le> Inf S \<longleftrightarrow> (\<forall>x\<in>S. a \<le> x)"
    3.47 +  by (metis order_trans cInf_lower cInf_greatest)
    3.48 +
    3.49 +lemma cSup_singleton [simp]: "Sup {x} = x"
    3.50 +  by (intro cSup_eq_maximum) auto
    3.51 +
    3.52 +lemma cInf_singleton [simp]: "Inf {x} = x"
    3.53 +  by (intro cInf_eq_minimum) auto
    3.54 +
    3.55 +lemma cSup_upper2: (*REAL_IMP_LE_SUP in HOL4*)
    3.56 +  "x \<in> X \<Longrightarrow> y \<le> x \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> y \<le> Sup X"
    3.57 +  by (metis cSup_upper order_trans)
    3.58 + 
    3.59 +lemma cInf_lower2:
    3.60 +  "x \<in> X \<Longrightarrow> x \<le> y \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X \<le> y"
    3.61 +  by (metis cInf_lower order_trans)
    3.62 +
    3.63 +lemma cSup_upper_EX: "x \<in> X \<Longrightarrow> \<exists>z. \<forall>x. x \<in> X \<longrightarrow> x \<le> z \<Longrightarrow> x \<le> Sup X"
    3.64 +  by (blast intro: cSup_upper)
    3.65 +
    3.66 +lemma cInf_lower_EX:  "x \<in> X \<Longrightarrow> \<exists>z. \<forall>x. x \<in> X \<longrightarrow> z \<le> x \<Longrightarrow> Inf X \<le> x"
    3.67 +  by (blast intro: cInf_lower)
    3.68 +
    3.69 +lemma cSup_eq_non_empty:
    3.70 +  assumes 1: "X \<noteq> {}"
    3.71 +  assumes 2: "\<And>x. x \<in> X \<Longrightarrow> x \<le> a"
    3.72 +  assumes 3: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> x \<le> y) \<Longrightarrow> a \<le> y"
    3.73 +  shows "Sup X = a"
    3.74 +  by (intro 3 1 antisym cSup_least) (auto intro: 2 1 cSup_upper)
    3.75 +
    3.76 +lemma cInf_eq_non_empty:
    3.77 +  assumes 1: "X \<noteq> {}"
    3.78 +  assumes 2: "\<And>x. x \<in> X \<Longrightarrow> a \<le> x"
    3.79 +  assumes 3: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> y \<le> x) \<Longrightarrow> y \<le> a"
    3.80 +  shows "Inf X = a"
    3.81 +  by (intro 3 1 antisym cInf_greatest) (auto intro: 2 1 cInf_lower)
    3.82 +
    3.83 +lemma cInf_cSup: "S \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> S \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf S = Sup {x. \<forall>s\<in>S. x \<le> s}"
    3.84 +  by (rule cInf_eq_non_empty) (auto intro: cSup_upper cSup_least)
    3.85 +
    3.86 +lemma cSup_cInf: "S \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> S \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup S = Inf {x. \<forall>s\<in>S. s \<le> x}"
    3.87 +  by (rule cSup_eq_non_empty) (auto intro: cInf_lower cInf_greatest)
    3.88 +
    3.89 +lemma cSup_insert: 
    3.90 +  assumes x: "X \<noteq> {}"
    3.91 +      and z: "\<And>x. x \<in> X \<Longrightarrow> x \<le> z"
    3.92 +  shows "Sup (insert a X) = sup a (Sup X)"
    3.93 +proof (intro cSup_eq_non_empty)
    3.94 +  fix y assume "\<And>x. x \<in> insert a X \<Longrightarrow> x \<le> y" with x show "sup a (Sup X) \<le> y" by (auto intro: cSup_least)
    3.95 +qed (auto intro: le_supI2 z cSup_upper)
    3.96 +
    3.97 +lemma cInf_insert: 
    3.98 +  assumes x: "X \<noteq> {}"
    3.99 +      and z: "\<And>x. x \<in> X \<Longrightarrow> z \<le> x"
   3.100 +  shows "Inf (insert a X) = inf a (Inf X)"
   3.101 +proof (intro cInf_eq_non_empty)
   3.102 +  fix y assume "\<And>x. x \<in> insert a X \<Longrightarrow> y \<le> x" with x show "y \<le> inf a (Inf X)" by (auto intro: cInf_greatest)
   3.103 +qed (auto intro: le_infI2 z cInf_lower)
   3.104 +
   3.105 +lemma cSup_insert_If: 
   3.106 +  "(\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> Sup (insert a X) = (if X = {} then a else sup a (Sup X))"
   3.107 +  using cSup_insert[of X z] by simp
   3.108 +
   3.109 +lemma cInf_insert_if: 
   3.110 +  "(\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf (insert a X) = (if X = {} then a else inf a (Inf X))"
   3.111 +  using cInf_insert[of X z] by simp
   3.112 +
   3.113 +lemma le_cSup_finite: "finite X \<Longrightarrow> x \<in> X \<Longrightarrow> x \<le> Sup X"
   3.114 +proof (induct X arbitrary: x rule: finite_induct)
   3.115 +  case (insert x X y) then show ?case
   3.116 +    apply (cases "X = {}")
   3.117 +    apply simp
   3.118 +    apply (subst cSup_insert[of _ "Sup X"])
   3.119 +    apply (auto intro: le_supI2)
   3.120 +    done
   3.121 +qed simp
   3.122 +
   3.123 +lemma cInf_le_finite: "finite X \<Longrightarrow> x \<in> X \<Longrightarrow> Inf X \<le> x"
   3.124 +proof (induct X arbitrary: x rule: finite_induct)
   3.125 +  case (insert x X y) then show ?case
   3.126 +    apply (cases "X = {}")
   3.127 +    apply simp
   3.128 +    apply (subst cInf_insert[of _ "Inf X"])
   3.129 +    apply (auto intro: le_infI2)
   3.130 +    done
   3.131 +qed simp
   3.132 +
   3.133 +lemma cSup_eq_Sup_fin: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup X = Sup_fin X"
   3.134 +proof (induct X rule: finite_ne_induct)
   3.135 +  case (insert x X) then show ?case
   3.136 +    using cSup_insert[of X "Sup_fin X" x] le_cSup_finite[of X] by simp
   3.137 +qed simp
   3.138 +
   3.139 +lemma cInf_eq_Inf_fin: "finite X \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf X = Inf_fin X"
   3.140 +proof (induct X rule: finite_ne_induct)
   3.141 +  case (insert x X) then show ?case
   3.142 +    using cInf_insert[of X "Inf_fin X" x] cInf_le_finite[of X] by simp
   3.143 +qed simp
   3.144 +
   3.145 +lemma cSup_atMost[simp]: "Sup {..x} = x"
   3.146 +  by (auto intro!: cSup_eq_maximum)
   3.147 +
   3.148 +lemma cSup_greaterThanAtMost[simp]: "y < x \<Longrightarrow> Sup {y<..x} = x"
   3.149 +  by (auto intro!: cSup_eq_maximum)
   3.150 +
   3.151 +lemma cSup_atLeastAtMost[simp]: "y \<le> x \<Longrightarrow> Sup {y..x} = x"
   3.152 +  by (auto intro!: cSup_eq_maximum)
   3.153 +
   3.154 +lemma cInf_atLeast[simp]: "Inf {x..} = x"
   3.155 +  by (auto intro!: cInf_eq_minimum)
   3.156 +
   3.157 +lemma cInf_atLeastLessThan[simp]: "y < x \<Longrightarrow> Inf {y..<x} = y"
   3.158 +  by (auto intro!: cInf_eq_minimum)
   3.159 +
   3.160 +lemma cInf_atLeastAtMost[simp]: "y \<le> x \<Longrightarrow> Inf {y..x} = y"
   3.161 +  by (auto intro!: cInf_eq_minimum)
   3.162 +
   3.163 +end
   3.164 +
   3.165 +instance complete_lattice \<subseteq> conditionally_complete_lattice
   3.166 +  by default (auto intro: Sup_upper Sup_least Inf_lower Inf_greatest)
   3.167 +
   3.168 +lemma isLub_cSup: 
   3.169 +  "(S::'a :: conditionally_complete_lattice set) \<noteq> {} \<Longrightarrow> (\<exists>b. S *<= b) \<Longrightarrow> isLub UNIV S (Sup S)"
   3.170 +  by  (auto simp add: isLub_def setle_def leastP_def isUb_def
   3.171 +            intro!: setgeI intro: cSup_upper cSup_least)
   3.172 +
   3.173 +lemma cSup_eq:
   3.174 +  fixes a :: "'a :: {conditionally_complete_lattice, no_bot}"
   3.175 +  assumes upper: "\<And>x. x \<in> X \<Longrightarrow> x \<le> a"
   3.176 +  assumes least: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> x \<le> y) \<Longrightarrow> a \<le> y"
   3.177 +  shows "Sup X = a"
   3.178 +proof cases
   3.179 +  assume "X = {}" with lt_ex[of a] least show ?thesis by (auto simp: less_le_not_le)
   3.180 +qed (intro cSup_eq_non_empty assms)
   3.181 +
   3.182 +lemma cInf_eq:
   3.183 +  fixes a :: "'a :: {conditionally_complete_lattice, no_top}"
   3.184 +  assumes upper: "\<And>x. x \<in> X \<Longrightarrow> a \<le> x"
   3.185 +  assumes least: "\<And>y. (\<And>x. x \<in> X \<Longrightarrow> y \<le> x) \<Longrightarrow> y \<le> a"
   3.186 +  shows "Inf X = a"
   3.187 +proof cases
   3.188 +  assume "X = {}" with gt_ex[of a] least show ?thesis by (auto simp: less_le_not_le)
   3.189 +qed (intro cInf_eq_non_empty assms)
   3.190 +
   3.191 +lemma cSup_le: "(S::'a::conditionally_complete_lattice set) \<noteq> {} \<Longrightarrow> S *<= b \<Longrightarrow> Sup S \<le> b"
   3.192 +  by (metis cSup_least setle_def)
   3.193 +
   3.194 +lemma cInf_ge: "(S::'a :: conditionally_complete_lattice set) \<noteq> {} \<Longrightarrow> b <=* S \<Longrightarrow> Inf S \<ge> b"
   3.195 +  by (metis cInf_greatest setge_def)
   3.196 +
   3.197 +class conditionally_complete_linorder = conditionally_complete_lattice + linorder
   3.198 +begin
   3.199 +
   3.200 +lemma less_cSup_iff : (*REAL_SUP_LE in HOL4*)
   3.201 +  "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> x \<le> z) \<Longrightarrow> y < Sup X \<longleftrightarrow> (\<exists>x\<in>X. y < x)"
   3.202 +  by (rule iffI) (metis cSup_least not_less, metis cSup_upper less_le_trans)
   3.203 +
   3.204 +lemma cInf_less_iff: "X \<noteq> {} \<Longrightarrow> (\<And>x. x \<in> X \<Longrightarrow> z \<le> x) \<Longrightarrow> Inf X < y \<longleftrightarrow> (\<exists>x\<in>X. x < y)"
   3.205 +  by (rule iffI) (metis cInf_greatest not_less, metis cInf_lower le_less_trans)
   3.206 +
   3.207 +lemma less_cSupE:
   3.208 +  assumes "y < Sup X" "X \<noteq> {}" obtains x where "x \<in> X" "y < x"
   3.209 +  by (metis cSup_least assms not_le that)
   3.210 +
   3.211 +lemma less_cSupD:
   3.212 +  "X \<noteq> {} \<Longrightarrow> z < Sup X \<Longrightarrow> \<exists>x\<in>X. z < x"
   3.213 +  by (metis less_cSup_iff not_leE)
   3.214 +
   3.215 +lemma cInf_lessD:
   3.216 +  "X \<noteq> {} \<Longrightarrow> Inf X < z \<Longrightarrow> \<exists>x\<in>X. x < z"
   3.217 +  by (metis cInf_less_iff not_leE)
   3.218 +
   3.219 +lemma complete_interval:
   3.220 +  assumes "a < b" and "P a" and "\<not> P b"
   3.221 +  shows "\<exists>c. a \<le> c \<and> c \<le> b \<and> (\<forall>x. a \<le> x \<and> x < c \<longrightarrow> P x) \<and>
   3.222 +             (\<forall>d. (\<forall>x. a \<le> x \<and> x < d \<longrightarrow> P x) \<longrightarrow> d \<le> c)"
   3.223 +proof (rule exI [where x = "Sup {d. \<forall>x. a \<le> x & x < d --> P x}"], auto)
   3.224 +  show "a \<le> Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   3.225 +    by (rule cSup_upper [where z=b], auto)
   3.226 +       (metis `a < b` `\<not> P b` linear less_le)
   3.227 +next
   3.228 +  show "Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c} \<le> b"
   3.229 +    apply (rule cSup_least) 
   3.230 +    apply auto
   3.231 +    apply (metis less_le_not_le)
   3.232 +    apply (metis `a<b` `~ P b` linear less_le)
   3.233 +    done
   3.234 +next
   3.235 +  fix x
   3.236 +  assume x: "a \<le> x" and lt: "x < Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   3.237 +  show "P x"
   3.238 +    apply (rule less_cSupE [OF lt], auto)
   3.239 +    apply (metis less_le_not_le)
   3.240 +    apply (metis x) 
   3.241 +    done
   3.242 +next
   3.243 +  fix d
   3.244 +    assume 0: "\<forall>x. a \<le> x \<and> x < d \<longrightarrow> P x"
   3.245 +    thus "d \<le> Sup {d. \<forall>c. a \<le> c \<and> c < d \<longrightarrow> P c}"
   3.246 +      by (rule_tac z="b" in cSup_upper, auto) 
   3.247 +         (metis `a<b` `~ P b` linear less_le)
   3.248 +qed
   3.249 +
   3.250 +end
   3.251 +
   3.252 +lemma cSup_bounds:
   3.253 +  fixes S :: "'a :: conditionally_complete_lattice set"
   3.254 +  assumes Se: "S \<noteq> {}" and l: "a <=* S" and u: "S *<= b"
   3.255 +  shows "a \<le> Sup S \<and> Sup S \<le> b"
   3.256 +proof-
   3.257 +  from isLub_cSup[OF Se] u have lub: "isLub UNIV S (Sup S)" by blast
   3.258 +  hence b: "Sup S \<le> b" using u 
   3.259 +    by (auto simp add: isLub_def leastP_def setle_def setge_def isUb_def) 
   3.260 +  from Se obtain y where y: "y \<in> S" by blast
   3.261 +  from lub l have "a \<le> Sup S"
   3.262 +    by (auto simp add: isLub_def leastP_def setle_def setge_def isUb_def)
   3.263 +       (metis le_iff_sup le_sup_iff y)
   3.264 +  with b show ?thesis by blast
   3.265 +qed
   3.266 +
   3.267 +
   3.268 +lemma cSup_unique: "(S::'a :: {conditionally_complete_linorder, no_bot} set) *<= b \<Longrightarrow> (\<forall>b'<b. \<exists>x\<in>S. b' < x) \<Longrightarrow> Sup S = b"
   3.269 +  by (rule cSup_eq) (auto simp: not_le[symmetric] setle_def)
   3.270 +
   3.271 +lemma cInf_unique: "b <=* (S::'a :: {conditionally_complete_linorder, no_top} set) \<Longrightarrow> (\<forall>b'>b. \<exists>x\<in>S. b' > x) \<Longrightarrow> Inf S = b"
   3.272 +  by (rule cInf_eq) (auto simp: not_le[symmetric] setge_def)
   3.273 +
   3.274 +lemma cSup_eq_Max: "finite (X::'a::conditionally_complete_linorder set) \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Sup X = Max X"
   3.275 +  using cSup_eq_Sup_fin[of X] Sup_fin_eq_Max[of X] by simp
   3.276 +
   3.277 +lemma cInf_eq_Min: "finite (X::'a::conditionally_complete_linorder set) \<Longrightarrow> X \<noteq> {} \<Longrightarrow> Inf X = Min X"
   3.278 +  using cInf_eq_Inf_fin[of X] Inf_fin_eq_Min[of X] by simp
   3.279 +
   3.280 +lemma cSup_lessThan[simp]: "Sup {..<x::'a::{conditionally_complete_linorder, dense_linorder}} = x"
   3.281 +  by (auto intro!: cSup_eq_non_empty intro: dense_le)
   3.282 +
   3.283 +lemma cSup_greaterThanLessThan[simp]: "y < x \<Longrightarrow> Sup {y<..<x::'a::{conditionally_complete_linorder, dense_linorder}} = x"
   3.284 +  by (auto intro!: cSup_eq intro: dense_le_bounded)
   3.285 +
   3.286 +lemma cSup_atLeastLessThan[simp]: "y < x \<Longrightarrow> Sup {y..<x::'a::{conditionally_complete_linorder, dense_linorder}} = x"
   3.287 +  by (auto intro!: cSup_eq intro: dense_le_bounded)
   3.288 +
   3.289 +lemma cInf_greaterThan[simp]: "Inf {x::'a::{conditionally_complete_linorder, dense_linorder} <..} = x"
   3.290 +  by (auto intro!: cInf_eq intro: dense_ge)
   3.291 +
   3.292 +lemma cInf_greaterThanAtMost[simp]: "y < x \<Longrightarrow> Inf {y<..x::'a::{conditionally_complete_linorder, dense_linorder}} = y"
   3.293 +  by (auto intro!: cInf_eq intro: dense_ge_bounded)
   3.294 +
   3.295 +lemma cInf_greaterThanLessThan[simp]: "y < x \<Longrightarrow> Inf {y<..<x::'a::{conditionally_complete_linorder, dense_linorder}} = y"
   3.296 +  by (auto intro!: cInf_eq intro: dense_ge_bounded)
   3.297 +
   3.298 +end
     4.1 --- a/src/HOL/Multivariate_Analysis/Topology_Euclidean_Space.thy	Thu Apr 25 10:31:10 2013 +0200
     4.2 +++ b/src/HOL/Multivariate_Analysis/Topology_Euclidean_Space.thy	Wed Apr 24 13:28:30 2013 +0200
     4.3 @@ -1364,8 +1364,8 @@
     4.4    by (simp add: sequentially_imp_eventually_within)
     4.5  
     4.6  lemma Lim_right_bound:
     4.7 -  fixes f :: "'a :: {linorder_topology, conditional_complete_linorder, no_top} \<Rightarrow>
     4.8 -    'b::{linorder_topology, conditional_complete_linorder}"
     4.9 +  fixes f :: "'a :: {linorder_topology, conditionally_complete_linorder, no_top} \<Rightarrow>
    4.10 +    'b::{linorder_topology, conditionally_complete_linorder}"
    4.11    assumes mono: "\<And>a b. a \<in> I \<Longrightarrow> b \<in> I \<Longrightarrow> x < a \<Longrightarrow> a \<le> b \<Longrightarrow> f a \<le> f b"
    4.12    assumes bnd: "\<And>a. a \<in> I \<Longrightarrow> x < a \<Longrightarrow> K \<le> f a"
    4.13    shows "(f ---> Inf (f ` ({x<..} \<inter> I))) (at x within ({x<..} \<inter> I))"
     5.1 --- a/src/HOL/Real.thy	Thu Apr 25 10:31:10 2013 +0200
     5.2 +++ b/src/HOL/Real.thy	Wed Apr 24 13:28:30 2013 +0200
     5.3 @@ -10,7 +10,7 @@
     5.4  header {* Development of the Reals using Cauchy Sequences *}
     5.5  
     5.6  theory Real
     5.7 -imports Rat Conditional_Complete_Lattices
     5.8 +imports Rat Conditionally_Complete_Lattices
     5.9  begin
    5.10  
    5.11  text {*
    5.12 @@ -925,7 +925,7 @@
    5.13  qed
    5.14  
    5.15  
    5.16 -instantiation real :: conditional_complete_linorder
    5.17 +instantiation real :: conditionally_complete_linorder
    5.18  begin
    5.19  
    5.20  subsection{*Supremum of a set of reals*}
     6.1 --- a/src/HOL/Topological_Spaces.thy	Thu Apr 25 10:31:10 2013 +0200
     6.2 +++ b/src/HOL/Topological_Spaces.thy	Wed Apr 24 13:28:30 2013 +0200
     6.3 @@ -6,7 +6,7 @@
     6.4  header {* Topological Spaces *}
     6.5  
     6.6  theory Topological_Spaces
     6.7 -imports Main Conditional_Complete_Lattices
     6.8 +imports Main Conditionally_Complete_Lattices
     6.9  begin
    6.10  
    6.11  subsection {* Topological space *}
    6.12 @@ -2079,7 +2079,7 @@
    6.13  
    6.14  section {* Connectedness *}
    6.15  
    6.16 -class linear_continuum_topology = linorder_topology + conditional_complete_linorder + inner_dense_linorder
    6.17 +class linear_continuum_topology = linorder_topology + conditionally_complete_linorder + inner_dense_linorder
    6.18  begin
    6.19  
    6.20  lemma Inf_notin_open: