src/LCF/simpdata.ML
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 65 08d3c007ae7c
permissions -rw-r--r--
Initial revision
clasohm@0
     1
(*  Title: 	LCF/simpdata
clasohm@0
     2
    ID:         $Id$
clasohm@0
     3
    Author: 	Tobias Nipkow, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1991  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Simplification data for LCF
clasohm@0
     7
*)
clasohm@0
     8
clasohm@0
     9
clasohm@0
    10
fun mk_rew_rules r =
clasohm@0
    11
let fun basify thm =
clasohm@0
    12
	  (case concl_of thm of
clasohm@0
    13
             _$(_$t$_) => (case fastype_of([],t) of
clasohm@0
    14
	                     Type("fun",_) => basify(thm RS ap_thm)
clasohm@0
    15
	                   | _ => thm)
clasohm@0
    16
           | _ => thm)
clasohm@0
    17
in map (mk_meta_eq o basify) (atomize r) end;
clasohm@0
    18
clasohm@0
    19
val LCF_rews = [minimal,
clasohm@0
    20
	 UU_app, UU_app RS ap_thm, UU_app RS ap_thm RS ap_thm,
clasohm@0
    21
	 not_TT_less_FF,not_FF_less_TT,not_TT_less_UU,not_FF_less_UU,
clasohm@0
    22
	 not_UU_eq_TT,not_UU_eq_FF,not_TT_eq_UU,not_TT_eq_FF,
clasohm@0
    23
	 not_FF_eq_UU,not_FF_eq_TT,
clasohm@0
    24
	 COND_UU,COND_TT,COND_FF,
clasohm@0
    25
	 surj_pairing,FST,SND];
clasohm@0
    26
clasohm@0
    27
val LCF_ss = FOL_ss setmksimps mk_rew_rules
clasohm@0
    28
                    addsimps LCF_rews;