Re: predicate in a predicate
- From: Jan Burse <janburse@xxxxxxxxxxx>
- Date: Fri, 07 Dec 2007 15:29:43 +0100
Keenlearner schrieb:
On Dec 7, 3:24 pm, herbzet <herb...@xxxxxxxxx> wrote:Keenlearner wrote:
On Dec 6, 7:46 pm, William Elliot <ma...@xxxxxxxxxxxxxxxxxx> wrote:You've received a number of good replies, but I just want toOn Thu, 6 Dec 2007, Keenlearner wrote:So I need to use the live_in(John, Bali) and live_with(John, Marry) inI was wondering how should I represent these two sentences in FirstNo.
Order Logic Form
John lives in Bali
John lives with Marry
live_in( John , Bali )
live_with( John, Marry )
or Can I have a predicate in the predicate,
live( John, in(Bali) )
live( John, with(Marry) )
As you can see that the second arguments of "live" predicate can eitherIt refers to a proposition. Thus you have hybrid
refer to the person or place. But can we use the same predicate "live"
with the second argument refer to person and place ? Thank you.
propositional constant, live(x,P) which isn't FOL.
----
order to be compliance with FOL ? or what do you think ? I am doing
natural language processing research, where a English sentence will be
converted into FOPC and then Prolog clauses to be proved. Thank you
for the reply.
state the point in terms of arguments and output.
A predicate takes terms as arguments and returns a sentence.
A function takes terms as arguments and returns a term.
In natural language there are also functors that take sentences
as arguments and return a term. A not very good example is the
single quote marks: "'It is hot' is a short sentence".
Also there are operators that take sentences as arguments
and return a sentence, e.g. the logical operator "and": "John
went to the store and Mary didn't." Or modal operators, such
as "It was believed by the ancients that ...".
--
hz
Yeah, I feel so lucky too to get so many nice replies. Thanks.
I have few things that I am still doubt.
I don't get this from Hezbert.
A predicate takes terms as arguments and returns a sentence.
A function takes terms as arguments and returns a term.
What is the difference between predicate and function ? can give me
examples that can differentiate between them ?
A predicate gives a boolean result. True or false.
A function gives a result belonging to the universe of discourse
if you use single sorted logic. Or a function gives a result
belonging to the universe of the sort of the return value if
you use multi sorted logic.
Terms are functions applied to other terms or they are can
also be variables. In single sorted logic there is only one
set of variables and functions have an arity. In multi sorted
logic variables have also a sort, and functions have a sort
signature.
Bye
.
- Follow-Ups:
- Re: predicate in a predicate
- From: Jan Burse
- Re: predicate in a predicate
- References:
- predicate in a predicate
- From: Keenlearner
- Re: predicate in a predicate
- From: William Elliot
- Re: predicate in a predicate
- From: Keenlearner
- Re: predicate in a predicate
- From: herbzet
- Re: predicate in a predicate
- From: Keenlearner
- predicate in a predicate
- Prev by Date: Re: Please stop replying to elsiemelsi
- Next by Date: Re: Please stop replying to elsiemelsi
- Previous by thread: Re: predicate in a predicate
- Next by thread: Re: predicate in a predicate
- Index(es):
Relevant Pages
|