problem: how to translate predicate logic sentences to Prolog?
- From: "j.vanloon-ab@xxxxxxxxx" <j.vanloon-ab@xxxxxxxxx>
- Date: 31 Jan 2006 04:40:10 -0800
given these 2 sentences in predicate logic:
1. for all Car: color(Car, blue) -> not owner(tim, Car) // tim doesnot
have a blue car
2. color ( auto4, blue) // auto4 is a blue car
with modus ponens I can conclude:
3. not owner(tim, auto4) // tim doesnot have auto4
How can I make a corresponding Prolog program ( translating 1. and 2.
in Prolog) to derive fact 3.?
greetings
jeu van loon
.
- Follow-Ups:
- Re: problem: how to translate predicate logic sentences to Prolog?
- From: Markus Triska
- Re: problem: how to translate predicate logic sentences to Prolog?
- Prev by Date: Re: The Bridge crossing prolog program
- Next by Date: Re: problem: how to translate predicate logic sentences to Prolog?
- Previous by thread: Calling Prolog predicates from a C program.
- Next by thread: Re: problem: how to translate predicate logic sentences to Prolog?
- Index(es):
Relevant Pages
|