Translation of Negative Quantifiers from a Scope-Resolved MRS to First-Order Logic Expression

I am currently exploring the translation of MRS logical form (scope-specified) to first-order logic expression. In particular, I am not sure how to translate negative quantifiers. For example, consider the sentence

No dogs chase no cats.

image

Let’s say we pick this scope:

The translation of no to first-order expression should be:
no(x, R(x), B(x)) → ∀x R(x) ⇒ ¬B(x)

So, the first-order translation of the sentence would be:
∀d dog(d) ⇒ ¬[∀c cat(c) ⇒ ¬chase (e, d, c)], which simplifies to:
∀d dog(d) ⇒ ∃c cat(c) ∧ chase (e, d, c)

This translation makes sense to me. However, a similar analysis does not seem to make sense when I consider the sentence

No dogs chase no cats and bark.

image

Let’s say we pick this scope:

So, the first-order translation of the sentence would be:
∀d dog(d) ⇒ ¬[∀c cat(c) ⇒ ¬(chase (e, d, c) ∧ bark(d))], which simplifies to:
∀d dog(d) ⇒ [∃c cat(c) ∧ chase (e, d, c) ∧ bark(d)]

This first-order expression says that the dog barks anyway, which is not what the original sentence asserts.

I also notice a similar thread but it does not seem to answer the question here. I think the sentences I provided here are ‘simple’ enough for a complete translation to first-order logic expression. Does anyone know where did things go wrong? Many thanks!

it’s not translatable

This is correct, for the scope tree you’ve given.

What the original sentence asserts depends on which scope reading you think the sentence should have.

I suspect you want “bark” to be outside the scope of “no(c)”. To allow this, “and” needs its own position in the scope tree, with its two children being QEQ to “chase” and “bark”. Then “no(c)” can appear between “and” and “chase”.

Thanks, this is an interesting example! Covering all kinds of coordination is actually very difficult, and you shouldn’t consider it a solved problem. There is plenty of discussion in the wiki, if you dare to look, e.g. VirtualCoordinationComposition · delph-in/docs Wiki · GitHub

Should we consider the scope tree I provided for No dogs chase no cats and bark. an extra scope reading that the MRS allows but in fact an invalid one, or is it actually that the translation itself from the MRS meta-language to first-order logic as the object language is problematic? Personally I could not understand such a reading which asserts all dogs do bark from the sentence.

Trying to understand all the possible scopes of a sentence can be a fun but time-consuming game. Having played this game many times, I can suggest doing the following:

  1. Simplify the sentence to isolate the confusing part.
  2. Modify the sentence to make the intended scope more reasonable (or make other scopes less reasonable).
  3. Come up with a discourse which supports the intended scope.

So, firstly, the confusing part is having a quantifier in one part of the coordination which scopes over the whole coordination. We can get rid of the first “no”, as in the example below. In the reading where the remaining “no” scopes over “bark”, Fido did not bark.

Fido chased no cats and barked.

Secondly, how do we make this reading more reasonable? Well, if “no” takes wide scope, the chasing and barking events are coordinated together at the bottom of the scope tree, so we have a kind of combined event which “no” takes scope over. So we could suggest this, as in the example below.

Fido chased no cats and barked at the same time.

But if Fido isn’t chasing cats, why do we care about barking? So, thirdly, we can build a discourse context:

My dog Fido likes to chase cats, but I really wish Fido would bark at the same time, so that I know what’s happening. Just this morning, Fido chased three cats, but I had no idea, because Fido chased no cats and barked at the same time.

You might still think it sounds a bit unnatural, but hopefully you can see what the scope is supposed to be. If you want to find a better example, you could also go back to step 2 and try with other words where there is a more obvious connection between the two events, e.g.:

Kim passed no exams and got a certificate to show it.

Hi all,

I am dealing with related question and maybe I will only paraphrase the problem already presented above. Consider the sentences below in a context of RTE (text entailment) task:

  1. A man is walking
  2. A man is not walking
  3. No man is walking

What pairs should be CONTRADICTORY? 1-3 is clear to me considering a situation like a picture being described. Either we have a man doing the action of walk OR we can’t see any man doing the action of walk. The pair 1-2 is more controversial. I can imagine a picture with a man walking AND another man not walking but doing another thing.

So how to make a FOL representation from the ERG produced MRSs:

Case 1: the only detail that I learned is that the existential quantifier need to be as deep as possible in the formula, closer to the predicate wich has it as ARG0. It does not make different here (F1a equivallent to F1b), but it will make in the next formulas. Thanks to Johan Bos to clarrify that.

[ TOP: h0
  INDEX: e2
  RELS: < [ _a_q<0:1> LBL: h4 ARG0: x3 RSTR: h5 BODY: h6 ]
          [ _man_n_1<2:5> LBL: h7 ARG0: x3 ]
          [ _walk_v_1<9:16> LBL: h1 ARG0: e2 ARG1: x3 ] >
  HCONS: < h0 qeq h1 h5 qeq h7 > ]

F1a) ∃ x3, _man_n_1 x3 ∧ ∃ e2, _walk_v_1 e2 x3
F1b) ∃ x3 e2, _man_n_1 x3 ∧ _walk_v_1 e2 x3

Case 3: I got 3 analysis, two of them with the no analysed as ADV. I will ignore them. The first analysis is the expected one with no as determinant. From the scoped resolved tree, only one possible formula. Here the existential e2 can’t be introduced in the outmost scope, after all, the event of walk didn’t happen.

 TOP: h0
  INDEX: e2
  RELS: < [ _no_q<0:2> LBL: h4 ARG0: x3 RSTR: h5 BODY: h6 ]
          [ _man_n_1<3:6> LBL: h7 ARG0: x3 ]
          [ _walk_v_1<10:17> LBL: h1 ARG0: e2 ARG1: x3 ] >
  HCONS: < h0 qeq h1 h5 qeq h7 > ]

F3) ∃ e2, ∀ x3, _man_n_1 x3 → ¬_walk_v_1 e2 x3

Case 2: we have two possible interpretations depend on how the negation is attached to the auxiliar or to the main verb:

2a) A man [[is not] walking]
2b) A man [is [not walking]]

[ TOP: h0
  INDEX: e2
  RELS: < [ _a_q<0:1> LBL: h4 ARG0: x3 RSTR: h5 BODY: h6 ]
          [ _man_n_1<2:5> LBL: h7 ARG0: x3 ]
          [ neg<9:12> LBL: h1 ARG0: e8 ARG1: h9 ]
          [ _walk_v_1<13:20> LBL: h10 ARG0: e2 ARG1: x3 ] >
  HCONS: < h0 qeq h1 h5 qeq h7 h9 qeq h10 > ]

[ TOP: h0
  INDEX: e2
  RELS: < [ _a_q<0:1> LBL: h4 ARG0: x3 RSTR: h5 BODY: h6 ]
          [ _man_n_1<2:5> LBL: h7 ARG0: x3 ]
          [ neg<9:12> LBL: h1 ARG0: e2 ARG1: h8 ]
          [ _walk_v_1<13:20> LBL: h9 ARG0: e10 ARG1: x3 ] >
  HCONS: < h0 qeq h1 h5 qeq h7 h8 qeq h9 > ]

The different between the MRSs is only the INDEX, in both cases, there is no constraint on the relative position of h4 and h1. Keep in mind the rule to make the e quantification as close as possible to the predicate which have it as intrinsic variable:

F2a) ¬(∃ x3, _man_n_1 x3 ∧ ∃ e2, _walk_v_1 e2 x3)
F2b) ∃ x3, _man_n_1 x3 ∧ ¬ ∃ e2, _walk_v_1 e2 x3

F2a was hard to accepted but once we apply some De Morgan’s law

∀ x3, (¬ _man_n_1 x3 ∨ ∀ e2, ¬ _walk_v_1 e2 x3)

For sure this topic was already exhaustively discussed … so references are welcome. The main question is:

Is it true that e variables need to be always quantified as close as possible to the predication which has it as the intrinsic variable? Why papers like [1310.4938] A Logic-based Approach for Recognizing Textual Entailment Supported by Ontological Background Knowledge does not discuss how ‘e’ variables need to be quantified? What is the main reason for not add implicit quantification for the ‘e’ variables given that for ‘x’ variables implicit quantifications are added?

I proved the contradictions I found at

(edited since my first post)

For A man is not walking, the demo only seems to give the first MRS in your Case 2?

I don’t know much about event quantification, but I found two documents discussing it which you may find useful:

In terms of literal semantics, they are not contradictory. In terms of pragmatic implicature, they might be (particularly in the context of describing an image). This would be a special case of a “quantity implicature”, i.e. “a man” has the implicature “there is exactly one man”.

This matches how natural language is used. I tried searching for the history of this idea, and Champollion credits Parsons (1987):

Champollion (2010) presentation
Parsons (1987) (see footnote 2)

I checked Davidson (1967) and I can’t see any discussion of scope there. I don’t know if Davidson discussed it later.

It’s completely deterministic to add event quantifiers with low scope. So adding them to the grammar would only be a notational change (there is a simple 1-to-1 correspondence between analyses with or without the event quantifiers). However, adding them would increase the size of the feature structures and slow down parsing.

The ERG has several different implicit quantifiers for instances. But the documentation also says “It is tempting to consider changing the three more specialized implicit quantifiers to just the one udef_q” (see: ErgSemantics_ImplicitQuantifiers · delph-in/docs Wiki · GitHub). If they were all collapsed into udef_q, then again it would be deterministic to remove/add them.

On the point about the ERG currently providing several specialized implicit quantifiers, would it be beneficial (for those of you consuming the MRS output) if the grammar collapsed those distinctions into the existing udef_q? Or perhaps we could go a step further and mark the definite/indefinite distinction with an additional attribute on indices, and have the quantifier simply be existential_q. Would this be an improvement, or would such a change introduce more problems than it would solve?

Hi @Dan, I don’t know. To answer that question, I guess we must understand the motivation for each implicit quantifier from ERG. Do we have documentation about them?

I know almost nothing about pragmatics. Just some general understanding from the yet partial reading of Emily’s book. Reading Wikipedia, I found only this tiny section about the formalization of pragmatics. I am working on the SICK dataset pushing the limits of MRS to FOL (as starting point), I wonder if someone seriously considers pragmatics when solving RTE datasets. References will be welcome.

I am still in the preliminary work of adapting the MRS to FOL transformation, and I am still unable to confirm if adding the quantifiers of ‘e’ variables will be deterministic. Eventually, complications can arise in the presence of modalities, compounds, nominalizations, coordination etc.

Thank you @guyemerson for the links!

Hi Dan,

In the sick dataset, we have some contradictions like:

  1. There is no man singing and playing the guitar
  2. A man is singing and playing the guitar

The complication here is the predication _be_v_there, my translations are:

  1. ∃ x10, _guitar_n_1 x10 ∧ (∀ x4, (∃ e9 e11 e12, _man_n_1 x4 ∧ _sing_v_1 e9 x4 x10 ∧ _and_c e11 e9 e12 ∧ _play_v_1 e12 x4 x10) → ¬(∃ e2, _be_v_there e2 x4))

  2. ∃ x9, _guitar_n_1 x9 ∧ (∃ x3, _man_n_1 x3 ∧ (∃ e8 e2 e10, _sing_v_1 e8 x3 x9 ∧ _and_c e2 e8 e10 ∧ _play_v_1 e10 x3 x9))

and clear these formulas are NEUTRAL. Any idea how to overcome this complexity introduced by the _be_v_there predicate?

[ LTOP: h0
INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ]
RELS: < [ _be_v_there<6:8> LBL: h1 ARG0: e2 ARG1: x4 [ x PERS: 3 NUM: sg ] ]
 [ _no_q<9:11> LBL: h5 ARG0: x4 RSTR: h6 BODY: h7 ]
 [ _man_n_1<12:15> LBL: h8 ARG0: x4 ]
 [ _sing_v_1<16:23> LBL: h8 ARG0: e9 [ e SF: prop TENSE: untensed MOOD: indicative PROG: + PERF: - ] ARG1: x4 ARG2: x10 [ x PERS: 3 NUM: sg ] ]
 [ _and_c<24:27> LBL: h8 ARG0: e11 [ e SF: prop TENSE: untensed MOOD: indicative PROG: + PERF: - ] ARG1: e9 ARG2: e12 [ e SF: prop TENSE: untensed MOOD: indicative PROG: + PERF: - ] ]
 [ _play_v_1<28:35> LBL: h8 ARG0: e12 ARG1: x4 ARG2: x10 ]
 [ _the_q<36:39> LBL: h13 ARG0: x10 RSTR: h14 BODY: h15 ]
 [ _guitar_n_1<40:46> LBL: h16 ARG0: x10 ] >
HCONS: < h0 qeq h1 h6 qeq h8 h14 qeq h16 >
ICONS: < > ]

This is not directly related to negation since in the paraphrases such as:

  1. A man is running
  2. There is a man running

They would not be considered (as expected) entailment. So maybe I must consider some transformations of possible paraphrases before translating them to logic. Any reference in the literature?

Could you just treat _be_v_there as always true? Then the propositions can be simplified. It would work for these examples, but maybe there are more complicated examples I haven’t thought of.

Not a bad idea @guyemerson!! I am trying it. At least for some cases, I experimented manually, it seems to work fine. For the positive case, the second reading of “There is a man running” is the expected one:

[ TOP: h0
  INDEX: e2
  RELS: < [ _be_v_there<6:8> LBL: h1 ARG0: e2 ARG1: x4 ]
          [ _a_q<9:10> LBL: h5 ARG0: x4 RSTR: h6 BODY: h7 ]
          [ _man_n_1<11:14> LBL: h8 ARG0: x4 ]
          [ _run_v_1<15:22> LBL: h8 ARG0: e9 ARG1: x4 ] >
  HCONS: < h0 qeq h1 h6 qeq h8 > ]

The generated formula would be

∃ x4, (∃ e9, _man_n_1 x4 ∧ _run_v_1 e9 x4) ∧ (∃ e2, _be_v_there e2 x4)

an extra axiom ∀ x y, _be_v_there x y would have no effect on the formula truth conditions.

For the negative ones, contradictions we will hopefully have the pattern below, the expected logical contradiction.

  1. A → FALSE
  2. A

I will report here the results in the dataset! Thank you.