src/ZF/Finite.thy
author wenzelm
Thu Nov 15 18:37:34 2001 +0100 (2001-11-15)
changeset 12214 f368821d9c68
parent 12175 5cf58a1799a7
child 13194 812b00ed1c03
permissions -rw-r--r--
depends on Epsilon!
clasohm@1478
     1
(*  Title:      ZF/Finite.thy
lcp@516
     2
    ID:         $Id$
clasohm@1478
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
lcp@516
     4
    Copyright   1994  University of Cambridge
lcp@516
     5
lcp@516
     6
Finite powerset operator
lcp@516
     7
*)
lcp@516
     8
wenzelm@12214
     9
Finite = Inductive + Epsilon + Nat +
paulson@9491
    10
paulson@9491
    11
(*The natural numbers as a datatype*)
paulson@9491
    12
rep_datatype 
paulson@9491
    13
  elim		natE
paulson@9491
    14
  induct	nat_induct
paulson@9491
    15
  case_eqns	nat_case_0, nat_case_succ
paulson@9491
    16
  recursor_eqns recursor_0, recursor_succ
paulson@9491
    17
paulson@9491
    18
lcp@534
    19
consts
clasohm@1478
    20
  Fin       :: i=>i
clasohm@1478
    21
  FiniteFun :: [i,i]=>i         ("(_ -||>/ _)" [61, 60] 60)
lcp@534
    22
lcp@516
    23
inductive
lcp@516
    24
  domains   "Fin(A)" <= "Pow(A)"
lcp@516
    25
  intrs
lcp@516
    26
    emptyI  "0 : Fin(A)"
lcp@516
    27
    consI   "[| a: A;  b: Fin(A) |] ==> cons(a,b) : Fin(A)"
paulson@6053
    28
  type_intrs empty_subsetI, cons_subsetI, PowI
lcp@516
    29
  type_elims "[make_elim PowD]"
lcp@534
    30
lcp@534
    31
inductive
lcp@534
    32
  domains   "FiniteFun(A,B)" <= "Fin(A*B)"
lcp@534
    33
  intrs
lcp@534
    34
    emptyI  "0 : A -||> B"
clasohm@1155
    35
    consI   "[| a: A;  b: B;  h: A -||> B;  a ~: domain(h)   
clasohm@1478
    36
             |] ==> cons(<a,b>,h) : A -||> B"
lcp@534
    37
  type_intrs "Fin.intrs"
lcp@516
    38
end