src/ZF/Finite.thy
author paulson
Mon Dec 28 16:59:28 1998 +0100 (1998-12-28)
changeset 6053 8a1059aa01f0
parent 1478 2b8c2a7547ab
child 9491 1a36151ee2fc
permissions -rw-r--r--
new inductive, datatype and primrec packages, etc.
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
lcp@806
     9
Finite = Arith + Inductive +
lcp@534
    10
consts
clasohm@1478
    11
  Fin       :: i=>i
clasohm@1478
    12
  FiniteFun :: [i,i]=>i         ("(_ -||>/ _)" [61, 60] 60)
lcp@534
    13
lcp@516
    14
inductive
lcp@516
    15
  domains   "Fin(A)" <= "Pow(A)"
lcp@516
    16
  intrs
lcp@516
    17
    emptyI  "0 : Fin(A)"
lcp@516
    18
    consI   "[| a: A;  b: Fin(A) |] ==> cons(a,b) : Fin(A)"
paulson@6053
    19
  type_intrs empty_subsetI, cons_subsetI, PowI
lcp@516
    20
  type_elims "[make_elim PowD]"
lcp@534
    21
lcp@534
    22
inductive
lcp@534
    23
  domains   "FiniteFun(A,B)" <= "Fin(A*B)"
lcp@534
    24
  intrs
lcp@534
    25
    emptyI  "0 : A -||> B"
clasohm@1155
    26
    consI   "[| a: A;  b: B;  h: A -||> B;  a ~: domain(h)   
clasohm@1478
    27
             |] ==> cons(<a,b>,h) : A -||> B"
lcp@534
    28
  type_intrs "Fin.intrs"
lcp@516
    29
end