4

Boris hasn't tried anything better than chocolate.

The above sentence needs to be converted to first-order logic. The given domain is candies, and Boris is a sentient piece of candy.

$B(x,y)$: $x$ is better than $y$

$T(x,y)$: $x$ has tried $y$

$C(x)$: $x$ has chocolate in it

$b$: Boris

I believe the intended meaning is that Boris has not tried any candy that is better than all candies containing chocolate. I have been at this for a few days, and my program says that my attempt $$\forall y\;\forall x\;((C(y)\land B(x,y))\to\lnot T(b,x)) $$ is wrong. I then tried putting $x$ as a negated existential, but I am still struggling to write it correctly.

ryang
  • 38,879
  • 14
  • 81
  • 179
MrExp
  • 51
  • 1
    Hint: If (Boris has tried y) and (x has chocolate) then y is not better than x. – Anne Bauval May 07 '23 at 06:02
  • 1
    The given sentence is unclear since "chocolate" isn't the name of a candy. Does "better than chocolate" mean "better than every candy with chocolate in it" or just "better than at least one candy with chocolate in it"? – Karl May 07 '23 at 06:12
  • An accepted answer was @x(@y(Cy > B(x,y)) > -T(b,x)) – MrExp May 10 '23 at 20:39
  • @MrExp "An accepted answer was $\forall x;(\forall y;(Cy \to Bxy) \to\lnot Tbx).$" $\quad$ In this case, please take a look at Note #3 in my answer below. – ryang May 11 '23 at 16:13
  • Surprised nobody came up with what I'd say is the most intuitive way: $\lnot \exists x (T(b,x) \land \forall y (C(y) \to B(x,y)))$ – Nico May 19 '23 at 19:18
  • @ryang I am aware that it's logically equivalent, but I still think it's the more intuitive way of writing it. $P \land Q$ is a lot more intuitive than $(P \to (Q \to \bot)) \to \bot$ even though both are equivalent. – Nico May 23 '23 at 02:03
  • @Nicolino Formalisation (3i) in my answer below is the exact same thing that you wrote (and, to be clear, this is logically equivalent to the OP's "accepted answer" revealed in their above comment). $\quad$ "is the most intuitive way" Given an inherently ambiguous sentence, whichever formalisation ensues depends on the translator's way of systematically rewording it first. Compare my English wording of (3i) (this corresponds to your suggestion) to my English wording of (3ii); is the former necessarily easier (more intuitive) to parse? – ryang May 23 '23 at 03:36
  • 1
    Ah, I started writing my comment from the 19th in the morning, before you added that formula into your response, and only sent it at night not bothering to check for an edit. Sorry for the confusion, and also touché on your 3-element universe, I didn't think of that possibility. – Nico May 23 '23 at 03:36

2 Answers2

3

The given domain is candies, and Boris is a sentient piece of candy.

Boris hasn't tried anything better than chocolate.

For simplicity, suppose that $$\exists z\;(Cz\land Tbz).$$

The most likely intended meaning:

  • For each candy that Boris has tried, Boris has tried some chocolate that is at least as good as the candy. $$\color{brown}{\forall x\;\big(Tbx\to \exists y\;(Cy\land Tby\land \lnot Bxy)\big)}\tag1$$

Also plausible:

  • For each pair of chocolate and non-chocolate candies that Boris has tried, the chocolate is at least as good as the non-chocolate. $$\color{brown}{\forall y\;\forall x\;(Cy\land Tby\land\lnot Cx\land Tbx\to \lnot Bxy)}\tag2$$

There are two possible literal translations (but problematic: refer to note #3 below):

  • It's not that for some candy that Boris has tried, it is better than every chocolate. $$\lnot\exists x\;\big(Tbx\land\forall y\;(Cy\to Bxy)\big)\tag3$$ For each candy that Boris has tried, some chocolate is at least as good as the candy. $$\color{brown}{\forall x\;\big(Tbx\to \exists y\;(Cy\land \lnot Bxy)\big)}\tag3$$
  • It's not that for some candy that Boris has tried, it is better than some chocolate. $$\lnot\exists x\;\big(Tbx\land\exists y\;(Cy\land Bxy)\big)\tag4$$ For each pair of candy that Boris has tried and chocolate, the chocolate is at least as good as the candy. $$\color{brown}{\forall y\;\forall x\;(Cy\land Tbx\to\lnot Bxy)}\tag4$$

    $$\forall y\;\forall x\;((C(y)\land B(x,y))\to\lnot T(b,x)) \tag4$$


Notes:

  1. The "some chocolate" in assertions $(1)$ and $(3)$ refer to the best chocolate that Boris has tried, and the best chocolate, respectively.

  2. Assertions $(1)$ and $(3),$ but not $(2)$ and $(4),$ allow Boris to have tried a pair of chocolate $p$ and non-chocolate $q$ such that $p$ is worse than $q$.

  3. Assertion $(3)$ allows the best candy that Boris has tried to be non-chocolate while simultaneously having tried chocolate! In this case, none of the other assertions are true.

    Assertion $(4)$ (the OP's suggestion) is so restrictive that it forbids Boris from having tried any chocolate that is better than the worst chocolate! The other assertions allow this.

  4. Under the axiom $$∀p\;¬Bpp \;\land\; ∃z\;(Cz∧Tbz),$$ assertion $(4)$ is logically stronger than the other assertions, while assertion $(2)$ is logically stronger than assertion $(1).$


Addendum corresponding to the OP's new comment

An accepted answer was $∀x\:(∀y\:(Cy→Bxy)→¬Tbx).$"

This is logically equivalent to assertion $(3)$.

Elaborating on Note #3: a surprising issue with assertion $(3)$ is that it is true in a universe with three candies $\text{Choc}_1,\text{NonChoc}_2,\text{Choc}_3,$ where the subscript indicates ranking, only the latter two of which Boris has tried.

Assertion $(3)$ is a literal translation but does not reflect how humans contextually read the given English sentence (due to its inherent ambiguity). (I wonder whether interpreting "Boris hasn't tried anything better than chocolate" as $(1)$ versus $(3)$ is one difference between a smart, well-trained chatbot and an early-generation chatbot.)

ryang
  • 38,879
  • 14
  • 81
  • 179
0

I’d say

$\forall x \forall y [(Tbx \land Tby \land Bxy) \to (Cy \to Cx)]$

That is, “for whatever Boris has tasted, if one thing is better than another, then the one that is worse is chocolate only if the one that is better is chocolate,” or “there is nothing that Boris has tasted that is better than something else he’s tasted such that the better one isn’t chocolate, while the worse one is chocolate.”

PW_246
  • 1,256