author | paulson |
Thu, 31 May 2001 18:28:23 +0200 | |
changeset 11354 | 9b80fe19407f |
parent 11318 | 6536fb8c9fc6 |
child 12595 | 0480d02221b8 |
permissions | -rw-r--r-- |
1478 | 1 |
(* Title: ZF/Coind/Map.thy |
915 | 2 |
ID: $Id$ |
1478 | 3 |
Author: Jacob Frost, Cambridge University Computer Laboratory |
915 | 4 |
Copyright 1995 University of Cambridge |
5 |
*) |
|
6 |
||
11354
9b80fe19407f
examples files start from Main instead of various ZF theories
paulson
parents:
11318
diff
changeset
|
7 |
Map = Main + |
915 | 8 |
|
11318 | 9 |
constdefs |
1401 | 10 |
TMap :: [i,i] => i |
11318 | 11 |
"TMap(A,B) == {m \\<in> Pow(A*Union(B)).\\<forall>a \\<in> A. m``{a} \\<in> B}" |
12 |
||
1401 | 13 |
PMap :: [i,i] => i |
11318 | 14 |
"PMap(A,B) == TMap(A,cons(0,B))" |
915 | 15 |
|
11318 | 16 |
(* Note: 0 \\<in> B ==> TMap(A,B) = PMap(A,B) *) |
915 | 17 |
|
1401 | 18 |
map_emp :: i |
11318 | 19 |
"map_emp == 0" |
20 |
||
1401 | 21 |
map_owr :: [i,i,i]=>i |
11318 | 22 |
"map_owr(m,a,b) == \\<Sigma>x \\<in> {a} Un domain(m). if x=a then b else m``{x}" |
1401 | 23 |
map_app :: [i,i]=>i |
11318 | 24 |
"map_app(m,a) == m``{a}" |
915 | 25 |
|
26 |
end |