src/ZF/Coind/Map.thy
author paulson
Thu, 07 Jan 1999 10:56:05 +0100
changeset 6068 2d8f3e1f1151
parent 3840 e0baea4d485a
child 11318 6536fb8c9fc6
permissions -rw-r--r--
if-then-else syntax for ZF
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     1
(*  Title:      ZF/Coind/Map.thy
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     2
    ID:         $Id$
1478
2b8c2a7547ab expanded tabs
clasohm
parents: 1401
diff changeset
     3
    Author:     Jacob Frost, Cambridge University Computer Laboratory
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     4
    Copyright   1995  University of Cambridge
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     5
*)
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     6
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     7
Map = QUniv +
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     8
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
     9
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 933
diff changeset
    10
  TMap :: [i,i] => i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 933
diff changeset
    11
  PMap :: [i,i] => i
933
5836531d7b91 Replaced rules by defs
lcp
parents: 915
diff changeset
    12
defs
3840
e0baea4d485a fixed dots;
wenzelm
parents: 1478
diff changeset
    13
  TMap_def "TMap(A,B) == {m:Pow(A*Union(B)).ALL a:A. m``{a}:B}"
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    14
  PMap_def "PMap(A,B) == TMap(A,cons(0,B))"
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    15
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    16
(* Note: 0:B ==> TMap(A,B) = PMap(A,B) *)
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    17
  
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    18
consts
1401
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 933
diff changeset
    19
  map_emp :: i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 933
diff changeset
    20
  map_owr :: [i,i,i]=>i
0c439768f45c removed quotes from consts and syntax sections
clasohm
parents: 933
diff changeset
    21
  map_app :: [i,i]=>i
933
5836531d7b91 Replaced rules by defs
lcp
parents: 915
diff changeset
    22
defs
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    23
  map_emp_def "map_emp == 0"
6068
2d8f3e1f1151 if-then-else syntax for ZF
paulson
parents: 3840
diff changeset
    24
  map_owr_def "map_owr(m,a,b) ==
2d8f3e1f1151 if-then-else syntax for ZF
paulson
parents: 3840
diff changeset
    25
	         SUM x:{a} Un domain(m). if x=a then b else m``{x}"
915
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    26
  map_app_def "map_app(m,a) == m``{a}"
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    27
  
6dae0daf57b7 New example by Jacob Frost, tidied by lcp
lcp
parents:
diff changeset
    28
end