src/ZF/OrderArith.thy
author lcp
Tue, 29 Nov 1994 00:31:31 +0100
changeset 753 ec86863e87c8
parent 437 435875e4b21d
child 1155 928a16e02f9f
permissions -rw-r--r--
replaced "rules" by "defs"
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     1
(*  Title: 	ZF/OrderArith.thy
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     2
    ID:         $Id$
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     5
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     6
Towards ordinal arithmetic 
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     7
*)
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     8
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
     9
OrderArith = Order + Sum + 
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    10
consts
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    11
  radd, rmult      :: "[i,i,i,i]=>i"
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    12
  rvimage          :: "[i,i,i]=>i"
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    13
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 437
diff changeset
    14
defs
437
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    15
  (*disjoint sum of two relations; underlies ordinal addition*)
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    16
  radd_def "radd(A,r,B,s) == \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    17
\                {z: (A+B) * (A+B).  \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    18
\                    (EX x y. z = <Inl(x), Inr(y)>)   | 	 \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    19
\                    (EX x' x. z = <Inl(x'), Inl(x)> & <x',x>:r)   | 	 \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    20
\                    (EX y' y. z = <Inr(y'), Inr(y)> & <y',y>:s)}"
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    21
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    22
  (*lexicographic product of two relations; underlies ordinal multiplication*)
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    23
  rmult_def "rmult(A,r,B,s) == \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    24
\                {z: (A*B) * (A*B).  \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    25
\                    EX x' y' x y. z = <<x',y'>, <x,y>> &	 \
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    26
\                       (<x',x>: r | (x'=x & <y',y>: s))}"
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    27
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    28
  (*inverse image of a relation*)
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    29
  rvimage_def "rvimage(A,f,r) == {z: A*A. EX x y. z = <x,y> & <f`x,f`y>: r}"
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    30
435875e4b21d modifications for cardinal arithmetic
lcp
parents:
diff changeset
    31
end