src/HOL/AxClasses/Tutorial/Product.thy
author wenzelm
Fri Sep 01 14:27:36 1995 +0200 (1995-09-01)
changeset 1247 18b1441fb603
child 8920 af5e09b6c208
permissions -rw-r--r--
Various axiomatic type class demos;
wenzelm@1247
     1
(*  Title:      HOL/AxClasses/Tutorial/Product.thy
wenzelm@1247
     2
    ID:         $Id$
wenzelm@1247
     3
    Author:     Markus Wenzel, TU Muenchen
wenzelm@1247
     4
wenzelm@1247
     5
Define a 'syntactic' class "product" that is logically equivalent to
wenzelm@1247
     6
"term".
wenzelm@1247
     7
*)
wenzelm@1247
     8
wenzelm@1247
     9
Product = HOL +
wenzelm@1247
    10
wenzelm@1247
    11
axclass
wenzelm@1247
    12
  product < term
wenzelm@1247
    13
wenzelm@1247
    14
consts
wenzelm@1247
    15
  "<*>" :: "['a::product, 'a] => 'a"      (infixl 70)
wenzelm@1247
    16
wenzelm@1247
    17
end