Jump to content

converting english sentence into first order logic

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
ailearner

ailearner

    Newbie

  • Members
  • Pip
  • 1 posts
i am trying to convert the english sentence below into first order logic , i i found it very hard please help

If nobody is both a child and a dog then if Fido is a dog Fido
cannot be a child

#2
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
Let D be the set of dogs.
Let C be the set of children.
(∀x (((x ∈ D) ∨ (x ∈ C)) ⇒ ((x ∈ D) ⇒ (x ∉ C)))
I dunno I'm just a tenth grader.
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz

#3
Ketabat

Ketabat

    Newbie

  • Members
  • Pip
  • 1 posts
you can simply convert statement to First Order Logic.

∄x (Child(x) ∧ Dog(x)) but this would be equivalent to ∀x (∼Child(x) ∨ ∼Dog(x)) ,and also ∀x(Dog(x)→∼Child(x)) so:

∀x(Dog(x)→∼Child(x))
Dog(Fido)
∴∼Child(Fido)

#4
Nahuo

Nahuo

    Newbie

  • Members
  • Pip
  • 5 posts
∀x ¬(Dx ∧ Cx) → (Df → ¬Cf)
This is the way that best covers the structure of your sentences I guess
diccionary:
Dx: x is a dog
Cx: x is a child
f: fido
¬ negation
∧ conjunction
→ implication

Ofcourse given ∀x ¬(Dx ∧ Cx) you can construct a derivation to Df → ¬Cf

Edited by Nahuo, 17 January 2009 - 09:50 AM.
I was drunk last nite when I wrote it and found some miss spellings today