author | clasohm |
Tue, 21 Nov 1995 12:41:52 +0100 | |
changeset 1350 | 5bf4a54ba25f |
parent 923 | ff1574a81019 |
child 1465 | 5d7a7e439cec |
permissions | -rw-r--r-- |
(* Title: HOL/Ord.ML ID: $Id$ Author: Tobias Nipkow, Cambridge University Computer Laboratory Copyright 1993 University of Cambridge The type class for ordered types *) open Ord; val [prem] = goalw Ord.thy [mono_def] "[| !!A B. A <= B ==> f(A) <= f(B) |] ==> mono(f)"; by (REPEAT (ares_tac [allI, impI, prem] 1)); qed "monoI"; val [major,minor] = goalw Ord.thy [mono_def] "[| mono(f); A <= B |] ==> f(A) <= f(B)"; by (rtac (major RS spec RS spec RS mp) 1); by (rtac minor 1); qed "monoD";