Neither PAKCS nor MCC transform right sections according to the Curry report.

From: Sebastian Fischer <>
Date: Sat, 19 Feb 2011 13:02:03 +0900


I thought that the difference between the expressions (=:= e) and (\x ->
x =:= e) is only observable in the context of encapsulated search but just
noticed that it is observable in ordinary Curry programs too (using both

"Each right section (op expr) is transformed into the lambda abstraction
(\x->(op) x expr) where x is a new variable." [Report on Curry, page 82]

Therefore, a difference between the following two predicates should not be

    partial = (=:= coin)
    lambda = (\x -> x =:= coin)

The following function computes two solutions to a given predicate:

    twoSols p | p x & p y = (x,y)
     where x,y free

It can be used to observe a difference between 'partial' and 'lambda':

    cyi> twoSols partial
    More solutions? [Y(es)/n(o)/a(ll)]
    cyi> twoSols lambda
    More solutions? [Y(es)/n(o)/a(ll)]
    More solutions? [Y(es)/n(o)/a(ll)]
    More solutions? [Y(es)/n(o)/a(ll)]

It seems related to the 'fcoin' example of the Toy community [1] which lead
to removing the mention of eta-expansion from the Curry report. Is it a
known issue that neither PAKCS nor MCC conform to the Curry report regarding
right sections?


curry mailing list
Received on Sa Feb 19 2011 - 18:57:53 CET

This archive was generated by hypermail 2.3.0 : Do Jan 21 2021 - 07:15:04 CET