equal
deleted
inserted
replaced
133 fun eqvt_add_del_aux flag orig_thm context = |
133 fun eqvt_add_del_aux flag orig_thm context = |
134 let |
134 let |
135 val thy = Context.theory_of context |
135 val thy = Context.theory_of context |
136 val thms_to_be_added = (case (prop_of orig_thm) of |
136 val thms_to_be_added = (case (prop_of orig_thm) of |
137 (* case: eqvt-lemma is of the implicational form *) |
137 (* case: eqvt-lemma is of the implicational form *) |
138 (Const("==>", _) $ (Const ("Trueprop",_) $ hyp) $ (Const ("Trueprop",_) $ concl)) => |
138 (Const("==>", _) $ (Const (@{const_name "Trueprop"},_) $ hyp) $ (Const (@{const_name "Trueprop"},_) $ concl)) => |
139 let |
139 let |
140 val (pi,typi) = get_pi concl thy |
140 val (pi,typi) = get_pi concl thy |
141 in |
141 in |
142 if (apply_pi hyp (pi,typi) = concl) |
142 if (apply_pi hyp (pi,typi) = concl) |
143 then |
143 then |