src/HOL/AxClasses/Tutorial/ProductInsts.thy
author clasohm
Mon, 11 Sep 1995 12:38:20 +0200
changeset 1253 131f72e2cd56
parent 1247 18b1441fb603
permissions -rw-r--r--
split IOA/ROOT.ML into two files for ABP and NTP

(*  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