[isabelle-dev] Relations vs. Predicates
florian.haftmann at informatik.tu-muenchen.de
Mon Apr 2 19:56:08 CEST 2012
> by the way, I noticed that sometimes [to_pred] yields undesirable
> results (containing case-expressions), e.g.,
> thm trancl_power[to_pred]
> results in
> (case ?p of (x, xa) ⇒ ?R^++ x xa) =
> (∃n>0. case ?p of (x, xa) ⇒ (?R ^^ n) x xa)
> is this an inherent problem or could this be "repaired" by adding
> appropriate [pred_set_conv] (I do not know how this workds in detail).
I do not know whether this is inherent (Stefan could know).
There are (at least) two solutions:
* [unfold prod_case_unfold]
* [of "(a, b)", unfold <some suitable rule>]
Note that internally prod_case is also used as »uncurry« combinator.
Hope this helps,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the isabelle-dev