src/HOLCF/One.ML
changeset 1267 bca91b4e1710
parent 1168 74be52691d62
child 1410 324aa8134639
equal deleted inserted replaced
1266:3ae9fe3c0f68 1267:bca91b4e1710
    72  (fn prems =>
    72  (fn prems =>
    73 	[
    73 	[
    74 	(rtac allI 1),
    74 	(rtac allI 1),
    75 	(rtac allI 1),
    75 	(rtac allI 1),
    76 	(res_inst_tac [("p","x")] oneE 1),
    76 	(res_inst_tac [("p","x")] oneE 1),
    77 	(asm_simp_tac ccc1_ss  1),
    77 	(Asm_simp_tac 1),
    78 	(res_inst_tac [("p","y")] oneE 1),
    78 	(res_inst_tac [("p","y")] oneE 1),
    79 	(asm_simp_tac (ccc1_ss addsimps dist_less_one) 1),
    79 	(asm_simp_tac (!simpset addsimps dist_less_one) 1),
    80 	(asm_simp_tac ccc1_ss  1)
    80 	(Asm_simp_tac 1)
    81 	]);
    81 	]);
    82 
    82 
    83 
    83 
    84 (* ------------------------------------------------------------------------ *)
    84 (* ------------------------------------------------------------------------ *)
    85 (* properties of one_when                                                   *)
    85 (* properties of one_when                                                   *)
    87 (* ------------------------------------------------------------------------ *)
    87 (* ------------------------------------------------------------------------ *)
    88 
    88 
    89 fun prover s =  prove_goalw One.thy [one_when_def,one_def] s
    89 fun prover s =  prove_goalw One.thy [one_when_def,one_def] s
    90  (fn prems =>
    90  (fn prems =>
    91 	[
    91 	[
    92 	(simp_tac (ccc1_ss addsimps [(rep_one_iso ),
    92 	(simp_tac (!simpset addsimps [(rep_one_iso ),
    93 	(abs_one_iso RS allI) RS ((rep_one_iso RS allI) 
    93 	(abs_one_iso RS allI) RS ((rep_one_iso RS allI) 
    94 	RS iso_strict) RS conjunct1] )1)
    94 	RS iso_strict) RS conjunct1] )1)
    95 	]);
    95 	]);
    96 
    96 
    97 val one_when = map prover ["one_when`x`UU = UU","one_when`x`one = x"];
    97 val one_when = map prover ["one_when`x`UU = UU","one_when`x`one = x"];