doc-src/Intro/prod.thy
author berghofe
Thu, 18 Feb 2010 17:27:18 +0100
changeset 35210 6e45e4c94751
parent 105 216d6ed87399
permissions -rw-r--r--
Added function rewrite_term_top for top-down rewriting.

Prod = FOL +
types   "*" 2                                 (infixl 20)
arities "*"     :: (term,term)term
consts  fst     :: "'a * 'b => 'a"
        snd     :: "'a * 'b => 'b"
        Pair    :: "['a,'b] => 'a * 'b"       ("(1<_,/_>)")
rules   fst     "fst(<a,b>) = a"
        snd     "snd(<a,b>) = b"
end