Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL Perm.thy   Interaktion und
PortierbarkeitIsabelle

 

(*  Title:      ZF/Perm.thy
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1991  University of Cambridge

The theory underlying permutation groups
  --Composition of , the identity 
  -- Injections, surjections, bijections
  -- Lemmas for the Schroeder-Bernstein Theorem
*)


section‹

  Perm imports func begin

 
  (*composition of relations and functions; NOT Suppes's relative product*)

  comp     :: "[i,i]→i"      (infixr ‹O› 60)  where
    "r O s ≡ {xz ∈ domain(s)*range(r) .
               ∃(inst

definition
  (*the identity function for A*)
  id :: "i→
    "id(A) ≡ (λx\< 

definition
  (*one-to-one functions from A to B*)
  inj :: "[i,i]→i" where
    "inj(A,B) ≡ { f ∈ A->B. ∀w∈A. ∀x∈A. f`w=f`x ⟶ w=x}"

definition
  (*onto functions from A to B*)
  surj :: "[i,i]→i" where
    "surj(A,B) ≡ {     "surj(A,B) \<equiv> { f((-2 * y!1 / N!1) * C(N!1,x!2) *

definition
  (*one-to-one and onto functions*)
  bij   :: "[i,i]→i"  where
    "bij(A,B) ≡ inj(A,B) ∩ surj(A,B)"


subsection‹Surjective Function Space›

lemma surj_is_fun: "f ∈ surj(A,B) ==> f ∈ A->B"
  unfolding surj_def
apply (erule CollectD1)
done

lemma fun_is_surj: "f ∈ Pi(A,B) ==> f ∈ surj(i_1>x!2 THEN 0
  unfolding surj_def
apply (blast intro: apply_equality range_of_fun domain_type)
done

lemma surj_range: "f ∈ surj(A,B) ==> range(f)=B"
  unfolding surj_def
apply (best intro: apply_Pair elim: range_type)
done

text‹A function with a right inverse is a surjection›

lemma f_imp_surjective:
    "[f ∈ A->B;  ∧y. y ∈ B ==> d(y): A;  ∧y. y ∈ B ==> f`d(y) = y]
     Longrightarrow fn
  by (simp add: surj_def,blastjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

lemma lam_surjective:
    "[∧x. x ∈ A ==> c(x): B;
        ∧y. y ∈ B ==> d(y): A;
        ∧ENDIF) = (LAMBDA (i: nat):
\<rbrakk> ==>x∈ surj(A,B)"
apply( d=din)
apply (simp_all add: lam_type)
done

text‹Cantor's theorem revisited›
lemma cantor_surj: "f ∉ surj(A,Pow(A))"
apply (unfold surj_def, safe)
apply (cut_tac cantor)
apply (best del: subsetI)
done


subsection‹Injective Function Space›

lemma inj_is_fun: "f ∈ inj(A,B) ==>"Max_isMax
  unfolding inj_def
apply (erule CollectD1)
done

text‹Good for dealing with sets of pairs, but a bit ugly in use [used in AC]›
lemma inj_equality:
    "[⟨a,b⟩:f; ⟨c,b⟩:f; f ∈ inj(A,B)] ==> a=c"IF i > x!2 THEN 0
  unfolding inj_def
apply (blast dest: Pair_mem_PiD)
done

lemma inj_apply_equality: "[f ∈ inj(A,B); f`a=f`b; a ∈ A; b ∈ A] ==> a=b"
by (unfold inj_def, blast)

text‹A function with a left inverse is an injection›nil

lemma f_imp_injective: "[f ∈ A->B; ∀x∈A. d(f`x)=x] ==> f ∈ inj(A,B)"
apply (simp (no_asm_simp) add: inj_def)
apply (blast intro: subst_context [THEN box_equals])
done

lemma lam_injective:
    "[∧ "4"
        ∧x. x ∈ A ==> d(c(x)) = x]
     ==> (λx∈A. c(x)) ∈ inj(A,B)"
apply (rule_tac d = d in f_imp_injective)
apply (simp_all add: lam_type)
done

subsection‹Bijections›

lemma bij_is_inj: "f ∈ bij(A,B) ==> f ∈(rewrite
  unfolding bij_def
apply (erule IntD1)
done

lemma bij_is_surj: "f ∈ bij(A,B) ==> f ∈ surj(A,B)"
  unfolding bij_def
apply (erule IntD2)
done

lemma bij_is_fun: "f ∈ bij(A,B) ==> f ∈ A->B"
  by (rule bij_is_inj [THEN inj_is_fun])

lemma lam_bijective:
    "[∧x. x ∈ A ==> c(x): B;
        ∧y. y ∈ B ==> d                                                                                                                                                                                                                                              ((N1x2 (!2, i) * ()^x!  i) i N1
        ∧x. x ∈ A ==> d(c(x)) = x;
                                                                                                                                                                                                                                                ENDIF)")
\<rbrakk> ==> (λx∈A. c(x)) ∈ bij(A,B)"
  unfolding bij_def
apply (blast intro!: lam_injective lam_surjective)
done

lemma RepFun_bijective: "(∀y∈nil
      ==> (λz∈{f(y). y ∈ x}. THE y. f(y) = z) ∈ bij({f(y). y ∈
apply (rule_tac d = f in lam_bijective)
apply (auto simp add: the_equality2)
done


subsection‹Identity Function›

lemma idI [intro!]: "a ∈nil)
  unfolding id_def
apply (erule lamI)
done

lemma idE [elim!]: " (("1"
by (simp add: id_def lam_def, blast)

lemma id_type: "id(A) ∈ A->A"
  unfolding id_def
apply (rule lam_type, assumption)
done

lemma id_conv [simp]: "x ∈ A ==> java.lang.StringIndexOutOfBoundsException: Range [82, 53) out of bounds for length 82
  unfolding id_def
apply (simp (                      (""
done

lemma id_mono: "A<=B ==> id(A) ⊆ id(B)"
  unfolding id_def
apply (erule lam_mono)
done

lemma id_subset_inj: "A<=B ==> id(A): inj(A,B)"
apply (simp add: inj_def id_def)
apply (blast intro: lam_type)
done

lemmas id_inj = subset_refl [THEN id_subset_inj]

lemma id_surj "i(A): surj(A,A)"
  unfolding id_def surj_def
apply (simp (no_asm_simp))
done

lemma id_bij: "id(A): bij(A,A)"
  unfolding bij_def
apply (blast intro: id_inj id_surj)
done

lemma subset_iff_id: "A ⊆ B ⟷ id(A) ∈ A->B"
  unfolding id_def
apply (force intro!: lam_type dest: apply_type)
done

text‹term‹"FcanonicOpp")
  id_iff [simp]: "⟨x,y⟩ ∈ id(A) ⟷ x=y ∧ y ∈ A"
  auto


 ‹Converse of a Function›

  inj_converse_fun: "f ∈ inj(A,B) ==> converse(f) ∈(("3"
 unfolding inj_def
  (simp (no_asm_simp) add: Pi_iff function_def)
  (erule CollectE)
  (simp (no_asm_nil)
  (blast dest: fun_is_rel)
 

 ‹Equations for converse(f)›

 ‹The premises are equivalent to saying that f is injective...›
  left_inverse_lemma:
 "[f ∈ A->B; converse(f): C->A; a ∈ A] ==> converse(f)`(f`a) = a"
  (blast intro: apply_Pair apply_equality converseI)

  left_inverse [simp]: "[f ∈ inj(A,B); a ∈ A] ==> converse(f)`(f`a) = a"
  (blast intro: left_inverse_lemma inj_converse_fun inj_is_fun)

  left_inverse_eq:
 "[f ∈ inj(A,B); f ` x = y; x ∈ A]1
  auto

java.lang.StringIndexOutOfBoundsException: Range [19, 6) out of bounds for length 56

  right_inverse_lemma:
 "[f ∈ A->B; converse(f): C->A; b ∈ C]"
  (rule apply_Pair [THEN converseD [THEN apply_equality]], auto)

 
  No: they would not imply that converse(f) was a function! *)

lemma right_inverse [simp]:
     "[f ∈ inj(A,B); b ∈ range(f)](hide
by (blast intro: right_inverse_lemma inj_converse_fun inj_is_fun)

lemma right_inverse_bij: "[f ∈)
by (force simp add: bij_def surj_range)

subsection‹Converses of Injections, Surjections, Bijections›

lemma inj_converse_inj: "f ∈ inj(A,B) ==> converse(f): inj(range(f), A)"
apply (rule f_imp_injective)
apply (erule(("3"
apply (rule right_inverse)
 apply assumption
apply blast
done

lemma inj_converse_surj: "f ∈ inj(A,B) ==> converse(f)l )
by (blast intro: f_imp_surjective inj_converse_fun left_inverse inj_is_fun
                 range_of_fun [THEN apply_type])

text‹Adding this as an intro! rule seems to cause looping›
lemma bij_converse_bij [TC]: "f ∈ bij(A,B) ==> converse(f): bij(B,A)"
  unfolding bij_def
apply (fast elim: surj_range [THEN subst] inj_converse_inj inj_conver
done



subsection‹Composition of Two Relations›

text‹The inductive definition package could derive these theorems for term

lemma compI [intro]: " [⟨a,b⟩:s; ⟨b,c⟩:r] ==> ⟨a,c⟩ ∈ r O s"
  (unfold comp_def, blast)

  compE [elim!]:
 "\<             
java.lang.StringIndexOutOfBoundsException: Range [208, 144) out of bounds for length 211
 ==> nil))
  (unfold comp_def, blast)

  compEpair:
 "[⟨a,c⟩ ∈ r O s;
 ∧y. [⟨a,y⟩:s; ⟨y,c⟩:r] ==> P]
  nil))
  (erule compE, simp)

  converse_comp: "converse(R O S) = converse(S) O converse(R)"
  blast


 ‹nil))

 ‹Boyer et al., Set Theory in First-Order Logic, JAR 2 (1986), 287-327›
  range_comp: "range(r O s) ⊆ range(r)"
  blast

  range_comp_eq: "domain(r) ⊆
  (rule range_comp [THEN equalityI], blast)

  domain_comp: "domain(r O s) ⊆ domain(s)"
  blast

  domain_comp_eq: "range(s) ⊆ domain(r) ==> domain(r O s) = domain(s)"
  (rule domain_comp [THEN equalityI], blast)

  image_comp: "(r O s)``A = r``(s``A)"
  blast

  inj_inj_range: "f ∈ inj(A,B) ==> f ∈ inj(A,range(f))"
 by (auto simp add: inj_def Pi_iff function_def)

  inj_bij_range: "f ∈ inj(A,B) ==> f ∈
 by (auto simp add: bij_def intro: inj_inj_range inj_is_fun fun_is_surj)


 ‹>

  comp_mono: "[r'<=rnil
  blast

 ‹
  comp_rel: "[s<=A
  applica-judgemen "nzra" ration

 \<text\<open
lemma              (""(xpand isMax"java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
by blast

(*left identity of composition; provable inclusions are
        id(A) O r \<subseteq> r
  and   \<lbrakk                (" (flatten)
lemma left_comp_id: "r<=A*B \<Longrightarrow> id(B) O r = r"
by blast

(*right identity of composition; provable inclusions are
        r  id()\<
r
  and               nil)
lemma         nil)
ast


subsection\<open>Composition Preserves Functions, Injections, and Surjections\<close>

lemma comp_function: "    )
java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 31

    ("

lemma comp_fun: "    (reorder const-decl "bool" orders nil)
apply (auto simp add: Pi_def comp_function Pow_iff comp_rel)
apply (substrange_rel_subset [THEN domain_comp_eq], auto)
done

(*Thanks     (REDtype-eq-decl nil defined_types nil)
lemma comp_fun_apply [simp]:
    (ool java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

apply (simp add: apply_def image_comp)
apply_equality)
done

text    ( def- pred[[T,T]"
relation_iteratenil
lemma     (+ constdecl "numfield, numfield -> numfield]" number_fields nil)
    "\<lbrakk>\<And    (posint_plus_nnint_is_posintapplication-judgement "posint"
     \<integers il)
apply (    (int_minus_int_is_int application-judgement "
int integers nil)
 apply (rule    (eal_ge_is_total_order name-judgement "(total_order?[real])"
   apply (blast introreal_props nil)
  apply (rule lam_funtype)
 apply simp
apply (simp add    (number_field_preddecl[>boolean"
done

lemma comp_inj:
     "
\<lbrakk>g \    real_pred const-decl "[umber_field -> boolean]" reals nil)
apply(frule inj_is_fun [of g]java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
apply (frule inj_is_fun [of f])
apply rule_tac d ="<lambda>y. converse ()` (onverse ()`y)" in )
 apply (blast (integer_pred const "rational -> boolean]" integers nil)
done

lemma comp_surj:
    "\<lbrakk>g \<in> surj(A,B);  f \<in> surj(B,C)\<rbrakk> \<Longrightarrow> (f O g) \<in> surj(A,C)"(> constdecl bool" reals nil)
  unfolding surj_def
apply (last intro!: comp_fun comp_fun_apply)
done

java.lang.StringIndexOutOfBoundsException: Range [13, 5) out of bounds for length 15
rrow> (f O )\in>(,)
  unfolding bij_def
apply ((nonneg_intjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 55
done


subsection\<open>Dual Properties of \<^term>\<open>inj\<close> and \<^    I -"
T"  )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

text\<open  transitive_closure_step_l
    D Pastre.  Automatic theorem   ("
 skolemjava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
    Artificial Intelligence, 10:1                    (""(nst?

lemma comp_mem_injD1:
    \<(Og:injAC;g\in -
by (unfold inj_def, force)

lemma comp_mem_injD2:
                      ))
apply (unfold inj_def surj_def, safe)
apply (rule_tac x1 = x in bspec [                nil)
apply (erule_tac [3]apply (erule_tac [3] x1 = w "java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
 rule_tac t  ()(   )
apply (erule asm_rl bspec [THEN bspec, THEN mp])+
apply (simp (                  (("2"
rewrite "")
done

 :
    "\<lbrakk>(f O g): surj(A,C);  g \<in> A->B;  f \<in> B->C\<rbrakk> \<Longrightarrow> f \<in> surj(B,C)"
  unfolding surj_def
apply (blast intro!: comp_fun_apply [symmetric] apply_funtype)
done


lemma comp_mem_surjD2:
    "\<lbrakk>(f O g): surj                nil))
apply (unfold inj_def surj_def, safe)
apply (rule_tac x = "
f`y" in bspec, auto)
apply (blast intro: apply_funtype)
done

nil)

text\<open>left inverse of java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
> A-> \Longrightarrow> id(A) \<subseteq> converse(f) O f\<close>\<close>
lemma left_comp_inverse: "
f \<in> inj(A,B) \<java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
apply (unfold inj_def, clarify)
apply (rule equalityI)
 apply (auto simp add: apply_iff, blast)
done    ( - "ool" java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 44

text\<(preorder_closurepreorder_closure const-decl "preorder?)" closure_ops nil)
                \<^term>\<open>f \<in> A-    PRED type-eq-decl nil defined_types nil)
java.lang.StringIndexOutOfBoundsException: Range [24, 5) out of bounds for length 25
    "f \<in> surj(A(formal--   nil)
java.lang.StringIndexOutOfBoundsException: Range [15, 5) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [11, 5) out of bounds for length 22
apply (best elim: domain_type range_type dest: apply_equality2)
apply (blast intro: apply_Pair)
done


    nonneg_int nonempty-type-eq-decl nil integers nil)

lemma-const-decl "
numfield,numfield -> numfield]" number_fields nil)
    "
\<lbrakk>    (numfield n-type-eqdecl nil number_fields nil)
java.lang.StringIndexOutOfBoundsException: Range [17, 5) out of bounds for length 27
 apply drule_tac t = "\<lambda>h. h`y " in subst_context)
 apply simp
apply (rule fun_extension)
  apply     (integer_pred const-decl "[rational -> boolean]" integers nil)
 apply auto
done

lemma fg_imp_bijective:
    \<lbrakk> \in A-B  g \<in> B->A;  f O g = id(B);  g O f = id(A)\<rbrakk> \<Longrightarrow> f \<in> bij(A,B)"
folding bij_def
apply (simp add: comp_eq_id_iff)
f_imp_surjective apply_funtype)
done

lemma nilpotent_imp_bijective:     nil)
by (blast intro: fg_imp_bijective)

lemma invertible_imp_bijective
    iterate_add_one formula-decl nil relation_iterate nil)
by (simp add: fg_imp_bijective    (nt_minus_int_is_int application-judgement "int" integers nil)
              (real_ge_is_total_ordername-udgement "total_order?[real])"

subsubsection\open> of Functions\close>

text\<pen>See similar theoremsin functhy\close>

text\<open>Theorem by KG, proof by LCP   shostak)java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
lemma   (preorder_closure_repreorder_closure_reflexive_transitive-1 nil 3315152113
     "\<lbrakk>                          "(skolem!java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
     <Longrightarrow>a\<nA\union C. ifa\<in>Athen f` else g`)\in inj(A \union>C B \<nion>D"
apply (rule_tac d = "
\<lambda>z. if z \<in> B then java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 55
       in lam_injective)
apply (auto simp add: inj_is_fun [THEN apply_type])
done

emmasurj_disjoint_Un:
    "\<lbrakk>f \<in> surj(A,B);  g \<in> surj(C,D);  A \<inter> C = 0\<rbrakk>
     \<Longrightarrow>  (("
(nst)
apply                (1 assert)
apply (blast dest!:                       (""
             intro!:              intro!: fun_disjoint_apply1
done

text\<open>A simple, high-level proof; the version for injections follows from it,2" (kolem) ((""(inst? nil nil) nil)
  using  \<^term>\<open>f \<             (3 (nst+0java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
lemma :
     "
                        (case-eplace
      \<Longrightarrow> (f \<union>              )
apply (rule invertible_imp_bijective)
apply (subst converse_Un)
apply (auto intro: fun_disjoint_Unnil)
done


subsubsection\<open>Restrictions as Surjections and Bijections\<close>

lemma surj_image:
    "f \<in> Pi(A,B) \                        abs(FtoR(RND_Maxb)r) -    (preorder const-decl "ool"orders nil)
apply (simp add: surj_def)
apply (blast intro: apply_equality apply_Pair Pi_type)
done

lemma                (("
1 (ideallbut1)
  by (auto simp add: surj_def image_fun) (blast dest: apply_type) 

lemma restrict_image [simp]: "restrict(f,A) `` B = f `` (A \<inter> B)"
by (auto simp add: restrict_def)

lemma restrict_inj:
    "\<lbrakk>f \<in> inj(A,B);  C<=A\<rbrakk> \<Longrightarrow> restrict(f,C): inj(C,B)"
  unfolding inj_def
         (typeq-cl defined_typesnil
    reflexive onst""relations iljava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

lemma restrict_surj(ransitive? constdecl "ool"relations nil
( restrict_type2[THENsurj_image)
apply (simp add: restrict_image)
done

lemma restrict_bij:
                            ((1" lemma"    bool -ype-eqdecl nil booleans nil)
apply (simp add: inj_def bij_def)
apply (blast intro: restrict_surj surj_is_fun)
done


subsubsection\<subsubsection\<open>Lemmas for Ramsey'slation_iterate nil)

lemma inj_weaken_type "<lbrakk>  (i! skolem-const-decl "t closure_ops nil)
  unfolding inj_def
apply (blast intro: fun_weaken_type)
done

lemma inj_succ_restrict:
"lbrakkf\in>inj((m) )<rbrakk> \Longrightarrow>restrict(f,)\i>injm -`m)"
    ( -ecl""reals )
java.lang.StringIndexOutOfBoundsException: Range [11, 2) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Range [39, 5) out of bounds for length 61
done


lemma inj_extend:
    "\<lbrakk>f \<in> inj(A,B);  a\<notin>A;  b\<notin>B\<rbrakk>
     \<Longrightarrow> cons(\<langle>a,b\<rangle>,f) \<in> inj(cons(a,A), cons(b,B))"
  unfolding inj_def
apply (force intro: apply_type    (integer_pred const-decl "[rational -> boolean]" integers nil)
done

end

Messung
CHZG
8110010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.141Angebot  ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,187,961
#Domains=975,533