src/ZF/Cardinal.thy
author paulson
Fri, 17 Jul 1998 10:49:19 +0200
changeset 5153 51bd3cd9ee85
parent 1478 2b8c2a7547ab
child 9683 f87c8c449018
permissions -rw-r--r--
now with Goal cmd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/Cardinal.thy
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     4
    Copyright   1994  University of Cambridge
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     5
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     6
Cardinals in Zermelo-Fraenkel Set Theory 
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     7
*)
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     8
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
     9
Cardinal = OrderType + Fixedpt + Nat + Sum + 
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    10
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 832
diff changeset
    11
  Least            :: (i=>o) => i    (binder "LEAST " 10)
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    12
  eqpoll, lepoll,
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 832
diff changeset
    13
          lesspoll :: [i,i] => o     (infixl 50)
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 832
diff changeset
    14
  cardinal         :: i=>i           ("|_|")
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 832
diff changeset
    15
  Finite, Card     :: i=>o
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    16
753
ec86863e87c8 replaced "rules" by "defs"
lcp
parents: 435
diff changeset
    17
defs
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    18
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    19
  (*least ordinal operator*)
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    20
  Least_def     "Least(P) == THE i. Ord(i) & P(i) & (ALL j. j<i --> ~P(j))"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    21
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    22
  eqpoll_def    "A eqpoll B == EX f. f: bij(A,B)"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    23
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    24
  lepoll_def    "A lepoll B == EX f. f: inj(A,B)"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    25
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    26
  lesspoll_def  "A lesspoll B == A lepoll B & ~(A eqpoll B)"
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    27
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    28
  Finite_def    "Finite(A) == EX n:nat. A eqpoll n"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    29
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    30
  cardinal_def  "|A| == LEAST i. i eqpoll A"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    31
832
ad50a9e74eaf Added Krzysztof's constants lesspoll and Finite
lcp
parents: 753
diff changeset
    32
  Card_def      "Card(i) == (i = |i|)"
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    33
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents:
diff changeset
    34
end