Patterns can now be let-bound
authorlcp
Wed, 03 May 1995 14:27:51 +0200
changeset 1094 840554ac0451
parent 1093 c2b3b7b7a69f
child 1095 6d0aad5f50a5
Patterns can now be let-bound
src/ZF/Let.thy
--- a/src/ZF/Let.thy	Wed May 03 14:17:01 1995 +0200
+++ b/src/ZF/Let.thy	Wed May 03 14:27:51 1995 +0200
@@ -3,10 +3,10 @@
     Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
     Copyright   1995  University of Cambridge
 
-Let expressions -- borrowed from HOL
+Let expressions, and tuple pattern-matching (borrowed from HOL)
 *)
 
-Let = ZF +
+Let = FOL +
 
 types
   letbinds  letbind
@@ -15,7 +15,7 @@
   Let           :: "['a, 'a => 'b] => 'b"
 
 syntax
-  "_bind"       :: "[idt, 'a] => letbind"             ("(2_ =/ _)" 10)
+  "_bind"       :: "[pttrn, 'a] => letbind"           ("(2_ =/ _)" 10)
   ""            :: "letbind => letbinds"              ("_")
   "_binds"      :: "[letbind, letbinds] => letbinds"  ("_;/ _")
   "_Let"        :: "[letbinds, 'a] => 'a"             ("(let (_)/ in (_))" 10)