src/ZF/Finite.thy
author lcp
Thu Aug 25 12:09:21 1994 +0200 (1994-08-25)
changeset 578 efc648d29dd0
parent 534 cd8bec47e175
child 806 6330ca0a3ac5
permissions -rw-r--r--
ZF/Inductive.thy,.ML: renamed from "inductive" to allow re-building without
the keyword "inductive" making the theory file fail

ZF/Makefile: now has Inductive.thy,.ML

ZF/Datatype,Finite,Zorn: depend upon Inductive
ZF/intr_elim: now checks that the inductive name does not clash with
existing theory names
ZF/ind_section: deleted things replicated in Pure/section_utils.ML
ZF/ROOT: now loads Pure/section_utils
     1 (*  Title: 	ZF/Finite.thy
     2     ID:         $Id$
     3     Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
     4     Copyright   1994  University of Cambridge
     5 
     6 Finite powerset operator
     7 *)
     8 
     9 Finite = Arith + "Inductive" +
    10 consts
    11   Fin 	    :: "i=>i"
    12   FiniteFun :: "[i,i]=>i"		("(_ -||>/ _)" [61, 60] 60)
    13 
    14 inductive
    15   domains   "Fin(A)" <= "Pow(A)"
    16   intrs
    17     emptyI  "0 : Fin(A)"
    18     consI   "[| a: A;  b: Fin(A) |] ==> cons(a,b) : Fin(A)"
    19   type_intrs "[empty_subsetI, cons_subsetI, PowI]"
    20   type_elims "[make_elim PowD]"
    21 
    22 inductive
    23   domains   "FiniteFun(A,B)" <= "Fin(A*B)"
    24   intrs
    25     emptyI  "0 : A -||> B"
    26     consI   "[| a: A;  b: B;  h: A -||> B;  a ~: domain(h)   \
    27 \	     |] ==> cons(<a,b>,h) : A -||> B"
    28   type_intrs "Fin.intrs"
    29 end