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