[m-dev.] Typecheck assertions

Peter Ross petdr at cs.mu.OZ.AU
Fri Jul 2 17:47:17 AEST 1999


Hi,

If you have an assertion of the form

:- assertion 
        (
                (some [AB] (app(A, B, AB), app(AB, C, ABC)))
        <=>
                (some [BC] (app(B, C, BC), app(A, BC, ABC)))
        ).

Is the following the best way to typecheck these assertions?

Create a new pred in the form:

assertion_a :-
        some [A,B,C,ABC] (
                (some [AB] (app(A, B, AB), app(AB, C, ABC)))
        <=>
                (some [BC] (app(B, C, BC), app(A, BC, ABC)))
        ).

and then typecheck that.

How hard will it be to generate meaningful error messages this way?

Pete.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list