src/HOL/AxClasses/Tutorial/ProductInsts.thy
author paulson
Wed, 05 Aug 1998 10:57:25 +0200
changeset 5253 82a5ca6290aa
parent 1247 18b1441fb603
permissions -rw-r--r--
New record type of programs

(*  Title:      HOL/AxClasses/Tutorial/ProductInsts.thy
    ID:         $Id$
    Author:     Markus Wenzel, TU Muenchen

Instantiate the 'syntactic' class "product", then define "<*>" on type
"bool".

Note: This may look like Haskell-instance, but is not quite the same!
*)

ProductInsts = Product +

instance
  bool :: product

defs
  prod_bool_def "x <*> y  == x & y::bool"

end