src/HOL/Fun.thy
author nipkow
Mon Apr 27 16:45:11 1998 +0200 (1998-04-27)
changeset 4830 bd73675adbed
parent 4648 f04da668581c
child 5305 513925de8962
permissions -rw-r--r--
Added a few lemmas.
Renamed expand_const -> split_const.
clasohm@1475
     1
(*  Title:      HOL/Fun.thy
clasohm@923
     2
    ID:         $Id$
clasohm@1475
     3
    Author:     Tobias Nipkow, Cambridge University Computer Laboratory
clasohm@923
     4
    Copyright   1994  University of Cambridge
clasohm@923
     5
nipkow@2912
     6
Notions about functions.
clasohm@923
     7
*)
clasohm@923
     8
paulson@4648
     9
Fun = Vimage +
nipkow@2912
    10
paulson@4059
    11
instance set :: (term) order
paulson@4059
    12
                       (subset_refl,subset_trans,subset_antisym,psubset_eq)
nipkow@2912
    13
consts
nipkow@2912
    14
nipkow@4830
    15
  inj, surj   :: ('a => 'b) => bool                   (*inj/surjective*)
nipkow@4830
    16
  inj_on      :: ['a => 'b, 'a set] => bool
nipkow@4830
    17
  inv         :: ('a => 'b) => ('b => 'a)
nipkow@2912
    18
nipkow@2912
    19
defs
nipkow@2912
    20
nipkow@4830
    21
  inj_def     "inj f          == ! x y. f(x)=f(y) --> x=y"
nipkow@4830
    22
  inj_on_def  "inj_on f A     == ! x:A. ! y:A. f(x)=f(y) --> x=y"
nipkow@4830
    23
  surj_def    "surj f         == ! y. ? x. y=f(x)"
nipkow@4830
    24
  inv_def     "inv(f::'a=>'b) == (% y. @x. f(x)=y)"
nipkow@2912
    25
nipkow@2912
    26
end