src/HOL/Equiv_Relations.thy
author haftmann
Thu, 11 Mar 2010 14:38:20 +0100
changeset 35724 178ad68f93ed
parent 35216 7641e8d831d2
child 35725 4d7e3cc9c52c
permissions -rw-r--r--
fixed typo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29655
ac31940cfb69 Plain, Main form meeting points in import hierarchy
haftmann
parents: 28562
diff changeset
     1
(*  Authors:    Lawrence C Paulson, Cambridge University Computer Laboratory
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     2
    Copyright   1996  University of Cambridge
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     3
*)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     4
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     5
header {* Equivalence Relations in Higher-Order Set Theory *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     6
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     7
theory Equiv_Relations
29655
ac31940cfb69 Plain, Main form meeting points in import hierarchy
haftmann
parents: 28562
diff changeset
     8
imports Finite_Set Relation Plain
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
     9
begin
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    10
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    11
subsection {* Equivalence relations *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    12
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    13
locale equiv =
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    14
  fixes A and r
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    15
  assumes refl_on: "refl_on A r"
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    16
    and sym: "sym r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    17
    and trans: "trans r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    18
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    19
text {*
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    20
  Suppes, Theorem 70: @{text r} is an equiv relation iff @{text "r\<inverse> O
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    21
  r = r"}.
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    22
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    23
  First half: @{text "equiv A r ==> r\<inverse> O r = r"}.
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    24
*}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    25
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    26
lemma sym_trans_comp_subset:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    27
    "sym r ==> trans r ==> r\<inverse> O r \<subseteq> r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    28
  by (unfold trans_def sym_def converse_def) blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    29
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    30
lemma refl_on_comp_subset: "refl_on A r ==> r \<subseteq> r\<inverse> O r"
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    31
  by (unfold refl_on_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    32
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    33
lemma equiv_comp_eq: "equiv A r ==> r\<inverse> O r = r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    34
  apply (unfold equiv_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    35
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    36
  apply (rule equalityI)
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    37
   apply (iprover intro: sym_trans_comp_subset refl_on_comp_subset)+
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    38
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    39
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    40
text {* Second half. *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    41
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    42
lemma comp_equivI:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    43
    "r\<inverse> O r = r ==> Domain r = A ==> equiv A r"
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    44
  apply (unfold equiv_def refl_on_def sym_def trans_def)
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    45
  apply (erule equalityE)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    46
  apply (subgoal_tac "\<forall>x y. (x, y) \<in> r --> (y, x) \<in> r")
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    47
   apply fast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    48
  apply fast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    49
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    50
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    51
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    52
subsection {* Equivalence classes *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    53
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    54
lemma equiv_class_subset:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    55
  "equiv A r ==> (a, b) \<in> r ==> r``{a} \<subseteq> r``{b}"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    56
  -- {* lemma for the next result *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    57
  by (unfold equiv_def trans_def sym_def) blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    58
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    59
theorem equiv_class_eq: "equiv A r ==> (a, b) \<in> r ==> r``{a} = r``{b}"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    60
  apply (assumption | rule equalityI equiv_class_subset)+
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    61
  apply (unfold equiv_def sym_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    62
  apply blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    63
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    64
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    65
lemma equiv_class_self: "equiv A r ==> a \<in> A ==> a \<in> r``{a}"
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    66
  by (unfold equiv_def refl_on_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    67
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    68
lemma subset_equiv_class:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    69
    "equiv A r ==> r``{b} \<subseteq> r``{a} ==> b \<in> A ==> (a,b) \<in> r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    70
  -- {* lemma for the next result *}
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    71
  by (unfold equiv_def refl_on_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    72
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    73
lemma eq_equiv_class:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    74
    "r``{a} = r``{b} ==> equiv A r ==> b \<in> A ==> (a, b) \<in> r"
17589
58eeffd73be1 renamed rules to iprover
nipkow
parents: 15539
diff changeset
    75
  by (iprover intro: equalityD2 subset_equiv_class)
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    76
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    77
lemma equiv_class_nondisjoint:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    78
    "equiv A r ==> x \<in> (r``{a} \<inter> r``{b}) ==> (a, b) \<in> r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    79
  by (unfold equiv_def trans_def sym_def) blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    80
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    81
lemma equiv_type: "equiv A r ==> r \<subseteq> A \<times> A"
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
    82
  by (unfold equiv_def refl_on_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    83
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    84
theorem equiv_class_eq_iff:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    85
  "equiv A r ==> ((x, y) \<in> r) = (r``{x} = r``{y} & x \<in> A & y \<in> A)"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    86
  by (blast intro!: equiv_class_eq dest: eq_equiv_class equiv_type)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    87
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    88
theorem eq_equiv_class_iff:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    89
  "equiv A r ==> x \<in> A ==> y \<in> A ==> (r``{x} = r``{y}) = ((x, y) \<in> r)"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    90
  by (blast intro!: equiv_class_eq dest: eq_equiv_class equiv_type)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    91
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    92
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    93
subsection {* Quotients *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    94
28229
4f06fae6a55e dropped superfluous code lemmas
haftmann
parents: 26791
diff changeset
    95
definition quotient :: "'a set \<Rightarrow> ('a \<times> 'a) set \<Rightarrow> 'a set set"  (infixl "'/'/" 90) where
28562
4e74209f113e `code func` now just `code`
haftmann
parents: 28229
diff changeset
    96
  [code del]: "A//r = (\<Union>x \<in> A. {r``{x}})"  -- {* set of equiv classes *}
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    97
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    98
lemma quotientI: "x \<in> A ==> r``{x} \<in> A//r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
    99
  by (unfold quotient_def) blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   100
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   101
lemma quotientE:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   102
  "X \<in> A//r ==> (!!x. X = r``{x} ==> x \<in> A ==> P) ==> P"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   103
  by (unfold quotient_def) blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   104
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   105
lemma Union_quotient: "equiv A r ==> Union (A//r) = A"
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
   106
  by (unfold equiv_def refl_on_def quotient_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   107
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   108
lemma quotient_disj:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   109
  "equiv A r ==> X \<in> A//r ==> Y \<in> A//r ==> X = Y | (X \<inter> Y = {})"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   110
  apply (unfold quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   111
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   112
  apply (rule equiv_class_eq)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   113
   apply assumption
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   114
  apply (unfold equiv_def trans_def sym_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   115
  apply blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   116
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   117
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   118
lemma quotient_eqI:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   119
  "[|equiv A r; X \<in> A//r; Y \<in> A//r; x \<in> X; y \<in> Y; (x,y) \<in> r|] ==> X = Y" 
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   120
  apply (clarify elim!: quotientE)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   121
  apply (rule equiv_class_eq, assumption)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   122
  apply (unfold equiv_def sym_def trans_def, blast)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   123
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   124
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   125
lemma quotient_eq_iff:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   126
  "[|equiv A r; X \<in> A//r; Y \<in> A//r; x \<in> X; y \<in> Y|] ==> (X = Y) = ((x,y) \<in> r)" 
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   127
  apply (rule iffI)  
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   128
   prefer 2 apply (blast del: equalityI intro: quotient_eqI) 
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   129
  apply (clarify elim!: quotientE)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   130
  apply (unfold equiv_def sym_def trans_def, blast)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   131
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   132
18493
343da052b961 more lemmas
nipkow
parents: 18490
diff changeset
   133
lemma eq_equiv_class_iff2:
343da052b961 more lemmas
nipkow
parents: 18490
diff changeset
   134
  "\<lbrakk> equiv A r; x \<in> A; y \<in> A \<rbrakk> \<Longrightarrow> ({x}//r = {y}//r) = ((x,y) : r)"
343da052b961 more lemmas
nipkow
parents: 18490
diff changeset
   135
by(simp add:quotient_def eq_equiv_class_iff)
343da052b961 more lemmas
nipkow
parents: 18490
diff changeset
   136
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   137
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   138
lemma quotient_empty [simp]: "{}//r = {}"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   139
by(simp add: quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   140
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   141
lemma quotient_is_empty [iff]: "(A//r = {}) = (A = {})"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   142
by(simp add: quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   143
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   144
lemma quotient_is_empty2 [iff]: "({} = A//r) = (A = {})"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   145
by(simp add: quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   146
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   147
15302
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   148
lemma singleton_quotient: "{x}//r = {r `` {x}}"
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   149
by(simp add:quotient_def)
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   150
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   151
lemma quotient_diff1:
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   152
  "\<lbrakk> inj_on (%a. {a}//r) A; a \<in> A \<rbrakk> \<Longrightarrow> (A - {a})//r = A//r - {a}//r"
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   153
apply(simp add:quotient_def inj_on_def)
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   154
apply blast
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   155
done
a643fcbc3468 Restructured List and added "rotate"
nipkow
parents: 15300
diff changeset
   156
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   157
subsection {* Defining unary operations upon equivalence classes *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   158
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   159
text{*A congruence-preserving function*}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   160
locale congruent =
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   161
  fixes r and f
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   162
  assumes congruent: "(y,z) \<in> r ==> f y = f z"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   163
19363
667b5ea637dd refined 'abbreviation';
wenzelm
parents: 19323
diff changeset
   164
abbreviation
21404
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19979
diff changeset
   165
  RESPECTS :: "('a => 'b) => ('a * 'a) set => bool"
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19979
diff changeset
   166
    (infixr "respects" 80) where
19363
667b5ea637dd refined 'abbreviation';
wenzelm
parents: 19323
diff changeset
   167
  "f respects r == congruent r f"
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   168
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   169
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   170
lemma UN_constant_eq: "a \<in> A ==> \<forall>y \<in> A. f y = c ==> (\<Union>y \<in> A. f(y))=c"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   171
  -- {* lemma required to prove @{text UN_equiv_class} *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   172
  by auto
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   173
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   174
lemma UN_equiv_class:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   175
  "equiv A r ==> f respects r ==> a \<in> A
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   176
    ==> (\<Union>x \<in> r``{a}. f x) = f a"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   177
  -- {* Conversion rule *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   178
  apply (rule equiv_class_self [THEN UN_constant_eq], assumption+)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   179
  apply (unfold equiv_def congruent_def sym_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   180
  apply (blast del: equalityI)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   181
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   182
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   183
lemma UN_equiv_class_type:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   184
  "equiv A r ==> f respects r ==> X \<in> A//r ==>
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   185
    (!!x. x \<in> A ==> f x \<in> B) ==> (\<Union>x \<in> X. f x) \<in> B"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   186
  apply (unfold quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   187
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   188
  apply (subst UN_equiv_class)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   189
     apply auto
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   190
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   191
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   192
text {*
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   193
  Sufficient conditions for injectiveness.  Could weaken premises!
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   194
  major premise could be an inclusion; bcong could be @{text "!!y. y \<in>
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   195
  A ==> f y \<in> B"}.
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   196
*}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   197
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   198
lemma UN_equiv_class_inject:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   199
  "equiv A r ==> f respects r ==>
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   200
    (\<Union>x \<in> X. f x) = (\<Union>y \<in> Y. f y) ==> X \<in> A//r ==> Y \<in> A//r
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   201
    ==> (!!x y. x \<in> A ==> y \<in> A ==> f x = f y ==> (x, y) \<in> r)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   202
    ==> X = Y"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   203
  apply (unfold quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   204
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   205
  apply (rule equiv_class_eq)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   206
   apply assumption
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   207
  apply (subgoal_tac "f x = f xa")
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   208
   apply blast
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   209
  apply (erule box_equals)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   210
   apply (assumption | rule UN_equiv_class)+
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   211
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   212
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   213
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   214
subsection {* Defining binary operations upon equivalence classes *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   215
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   216
text{*A congruence-preserving function of two arguments*}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   217
locale congruent2 =
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   218
  fixes r1 and r2 and f
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   219
  assumes congruent2:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   220
    "(y1,z1) \<in> r1 ==> (y2,z2) \<in> r2 ==> f y1 y2 = f z1 z2"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   221
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   222
text{*Abbreviation for the common case where the relations are identical*}
19979
a0846edbe8b0 replaced translation by abbreviation
nipkow
parents: 19363
diff changeset
   223
abbreviation
21404
eb85850d3eb7 more robust syntax for definition/abbreviation/notation;
wenzelm
parents: 19979
diff changeset
   224
  RESPECTS2:: "['a => 'a => 'b, ('a * 'a) set] => bool"
21749
3f0e86c92ff3 respects2: tuned spacing;
wenzelm
parents: 21404
diff changeset
   225
    (infixr "respects2" 80) where
19979
a0846edbe8b0 replaced translation by abbreviation
nipkow
parents: 19363
diff changeset
   226
  "f respects2 r == congruent2 r r f"
a0846edbe8b0 replaced translation by abbreviation
nipkow
parents: 19363
diff changeset
   227
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   228
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   229
lemma congruent2_implies_congruent:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   230
    "equiv A r1 ==> congruent2 r1 r2 f ==> a \<in> A ==> congruent r2 (f a)"
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
   231
  by (unfold congruent_def congruent2_def equiv_def refl_on_def) blast
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   232
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   233
lemma congruent2_implies_congruent_UN:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   234
  "equiv A1 r1 ==> equiv A2 r2 ==> congruent2 r1 r2 f ==> a \<in> A2 ==>
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   235
    congruent r1 (\<lambda>x1. \<Union>x2 \<in> r2``{a}. f x1 x2)"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   236
  apply (unfold congruent_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   237
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   238
  apply (rule equiv_type [THEN subsetD, THEN SigmaE2], assumption+)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   239
  apply (simp add: UN_equiv_class congruent2_implies_congruent)
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
   240
  apply (unfold congruent2_def equiv_def refl_on_def)
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   241
  apply (blast del: equalityI)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   242
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   243
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   244
lemma UN_equiv_class2:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   245
  "equiv A1 r1 ==> equiv A2 r2 ==> congruent2 r1 r2 f ==> a1 \<in> A1 ==> a2 \<in> A2
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   246
    ==> (\<Union>x1 \<in> r1``{a1}. \<Union>x2 \<in> r2``{a2}. f x1 x2) = f a1 a2"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   247
  by (simp add: UN_equiv_class congruent2_implies_congruent
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   248
    congruent2_implies_congruent_UN)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   249
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   250
lemma UN_equiv_class_type2:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   251
  "equiv A1 r1 ==> equiv A2 r2 ==> congruent2 r1 r2 f
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   252
    ==> X1 \<in> A1//r1 ==> X2 \<in> A2//r2
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   253
    ==> (!!x1 x2. x1 \<in> A1 ==> x2 \<in> A2 ==> f x1 x2 \<in> B)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   254
    ==> (\<Union>x1 \<in> X1. \<Union>x2 \<in> X2. f x1 x2) \<in> B"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   255
  apply (unfold quotient_def)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   256
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   257
  apply (blast intro: UN_equiv_class_type congruent2_implies_congruent_UN
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   258
    congruent2_implies_congruent quotientI)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   259
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   260
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   261
lemma UN_UN_split_split_eq:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   262
  "(\<Union>(x1, x2) \<in> X. \<Union>(y1, y2) \<in> Y. A x1 x2 y1 y2) =
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   263
    (\<Union>x \<in> X. \<Union>y \<in> Y. (\<lambda>(x1, x2). (\<lambda>(y1, y2). A x1 x2 y1 y2) y) x)"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   264
  -- {* Allows a natural expression of binary operators, *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   265
  -- {* without explicit calls to @{text split} *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   266
  by auto
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   267
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   268
lemma congruent2I:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   269
  "equiv A1 r1 ==> equiv A2 r2
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   270
    ==> (!!y z w. w \<in> A2 ==> (y,z) \<in> r1 ==> f y w = f z w)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   271
    ==> (!!y z w. w \<in> A1 ==> (y,z) \<in> r2 ==> f w y = f w z)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   272
    ==> congruent2 r1 r2 f"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   273
  -- {* Suggested by John Harrison -- the two subproofs may be *}
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   274
  -- {* \emph{much} simpler than the direct proof. *}
30198
922f944f03b2 name changes
nipkow
parents: 29655
diff changeset
   275
  apply (unfold congruent2_def equiv_def refl_on_def)
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   276
  apply clarify
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   277
  apply (blast intro: trans)
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   278
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   279
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   280
lemma congruent2_commuteI:
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   281
  assumes equivA: "equiv A r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   282
    and commute: "!!y z. y \<in> A ==> z \<in> A ==> f y z = f z y"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   283
    and congt: "!!y z w. w \<in> A ==> (y,z) \<in> r ==> f w y = f w z"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   284
  shows "f respects2 r"
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   285
  apply (rule congruent2I [OF equivA equivA])
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   286
   apply (rule commute [THEN trans])
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   287
     apply (rule_tac [3] commute [THEN trans, symmetric])
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   288
       apply (rule_tac [5] sym)
25482
4ed49eccb1eb dropped implicit assumption proof
haftmann
parents: 24728
diff changeset
   289
       apply (rule congt | assumption |
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   290
         erule equivA [THEN equiv_type, THEN subsetD, THEN SigmaE2])+
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   291
  done
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   292
24728
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   293
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   294
subsection {* Quotients and finiteness *}
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   295
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   296
text {*Suggested by Florian Kammüller*}
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   297
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   298
lemma finite_quotient: "finite A ==> r \<subseteq> A \<times> A ==> finite (A//r)"
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   299
  -- {* recall @{thm equiv_type} *}
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   300
  apply (rule finite_subset)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   301
   apply (erule_tac [2] finite_Pow_iff [THEN iffD2])
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   302
  apply (unfold quotient_def)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   303
  apply blast
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   304
  done
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   305
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   306
lemma finite_equiv_class:
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   307
  "finite A ==> r \<subseteq> A \<times> A ==> X \<in> A//r ==> finite X"
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   308
  apply (unfold quotient_def)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   309
  apply (rule finite_subset)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   310
   prefer 2 apply assumption
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   311
  apply blast
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   312
  done
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   313
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   314
lemma equiv_imp_dvd_card:
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   315
  "finite A ==> equiv A r ==> \<forall>X \<in> A//r. k dvd card X
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   316
    ==> k dvd card A"
26791
3581a9c71909 Instantiated subst rule to avoid problems with HO unification.
berghofe
parents: 25482
diff changeset
   317
  apply (rule Union_quotient [THEN subst [where P="\<lambda>A. k dvd card A"]])
24728
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   318
   apply assumption
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   319
  apply (rule dvd_partition)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   320
     prefer 3 apply (blast dest: quotient_disj)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   321
    apply (simp_all add: Union_quotient equiv_type)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   322
  done
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   323
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   324
lemma card_quotient_disjoint:
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   325
 "\<lbrakk> finite A; inj_on (\<lambda>x. {x} // r) A \<rbrakk> \<Longrightarrow> card(A//r) = card A"
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   326
apply(simp add:quotient_def)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   327
apply(subst card_UN_disjoint)
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   328
   apply assumption
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   329
  apply simp
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   330
 apply(fastsimp simp add:inj_on_def)
35216
7641e8d831d2 get rid of many duplicate simp rule warnings
huffman
parents: 30198
diff changeset
   331
apply simp
24728
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   332
done
e2b3a1065676 moved Finite_Set before Datatype
haftmann
parents: 23705
diff changeset
   333
15300
7dd5853a4812 moved and renamed Integ/Equiv.thy
paulson
parents:
diff changeset
   334
end