[Attempto] or is interpreted as inclusive or , or xor?

Norbert E. Fuchs fuchs at ifi.uzh.ch
Sun Jul 11 13:17:40 CEST 2010


On 11 Jul 2010, at 09:47, Gabriele Kahlout wrote:

> 2010/7/11 Norbert E. Fuchs <fuchs at ifi.uzh.ch>
> 
> ...
> Not in our experience. We checked naturally occurring "either-or" on the web, and found that in most cases it did not mean exclusive or, but emphasis.
> 
> That's interesting, is there a report on this research?

No, this was done informally quite a number of years ago. In the end, we decided not to have an explicit construct for the exclusive or in ACE.

> ...
> 
> So in this case one should have written "the customer inserts a VisaCard or inserts a MasterCard, and not both and inserts a code.
> But there is no support for both, so how could mutual exclusiveness be expressed?

> "No card is inserted while another card is inserted. The customer inserts a VisaCard or inserts a MasterCard, and inserts a code."
> but function words while and another don't exist. So:
> "If a card is inserted then no other card is inserted. ..."
> but other also doesn't exist:
> "If a card X1 is inserted then no card is inserted except X1. ..."
> but except doesn't exist:
> "If a card X1 is inserted then exactly X1 is inserted. ..."
> exactly meaning that no other card is inserted.
> 
> Is the last the most natural way to express xor in ACE for the example sentence?

No. Note that an exclusive or could be imbedded in an if-then sentence which would make your constructs very hard to read.

To express "A XOR B" in ACE you write – as you do in standard FOL – "(A and not B) or (B and not A), similar to what you did  in your email of 10 July 2010 22:10:10 CEST.  

Or – and this is probably an exclusive or – you could add the exclusive or to ACE, download the Attempto Parsing Engine APE and extend it by grammar rules processing the exclusive or.

> --- unchanged since 25/1/10 ---
> P.S. Unless a notification (LON), please reply either with an answer OR with " ACK" appended to this subject within 48 hours. Otherwise, I might resend.
> In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧ ¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
> 
> Also note that correspondence may be received only from specified a priori senders, or if the subject of this email ends with a code, eg. -LICHT01X, then also from senders whose reply contains it.
> ∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).

What does this mean?

   --- nef



More information about the attempto mailing list