src/HOL/ex/predicate_compile.ML
changeset 31105 95f66b234086
parent 30528 7173bf123335
child 31106 9a1178204dc0
     1.1 --- a/src/HOL/ex/predicate_compile.ML	Tue Apr 21 09:53:31 2009 +0200
     1.2 +++ b/src/HOL/ex/predicate_compile.ML	Wed Apr 22 11:10:23 2009 +0200
     1.3 @@ -726,15 +726,15 @@
     1.4      Const ("Trueprop", _) $ _ => Conv.arg_conv cv ct  
     1.5    | _ => error "Trueprop_conv"
     1.6  
     1.7 -fun preprocess_intro thy rule = Thm.transfer thy rule (*FIXME preprocessor
     1.8 +fun preprocess_intro thy rule =
     1.9    Conv.fconv_rule
    1.10      (imp_prems_conv
    1.11 -      (Trueprop_conv (Conv.try_conv (Conv.rewr_conv (Thm.symmetric @ {thm Predicate.eq_is_eq})))))
    1.12 -    (Thm.transfer thy rule) *)
    1.13 +      (Trueprop_conv (Conv.try_conv (Conv.rewr_conv (Thm.symmetric @{thm Predicate.eq_is_eq})))))
    1.14 +    (Thm.transfer thy rule)
    1.15  
    1.16 -fun preprocess_elim thy nargs elimrule = (*FIXME preprocessor -- let
    1.17 +fun preprocess_elim thy nargs elimrule = let
    1.18     fun replace_eqs (Const ("Trueprop", _) $ (Const ("op =", T) $ lhs $ rhs)) =
    1.19 -      HOLogic.mk_Trueprop (Const (@ {const_name Predicate.eq}, T) $ lhs $ rhs)
    1.20 +      HOLogic.mk_Trueprop (Const (@{const_name Predicate.eq}, T) $ lhs $ rhs)
    1.21      | replace_eqs t = t
    1.22     fun preprocess_case t = let
    1.23       val params = Logic.strip_params t
    1.24 @@ -746,10 +746,10 @@
    1.25     val elimrule' = Logic.list_implies ((hd prems) :: cases', Thm.concl_of elimrule)
    1.26   in
    1.27     Thm.equal_elim
    1.28 -     (Thm.symmetric (Conv.implies_concl_conv (MetaSimplifier.rewrite true [@ {thm eq_is_eq}])
    1.29 +     (Thm.symmetric (Conv.implies_concl_conv (MetaSimplifier.rewrite true [@{thm eq_is_eq}])
    1.30          (cterm_of thy elimrule')))
    1.31       elimrule
    1.32 - end*) elimrule;
    1.33 + end;
    1.34  
    1.35  
    1.36  (* returns true if t is an application of an datatype constructor *)