Definition: A term is any
syntactic expression that designates an object.
Names are primitive terms, i.e. a constant-symbol. Compound terms are made up of function-symbols applied to constant-symbols, e.g. father(Mary).
The function-symbol
father is the name of a function that maps semantic objects
to semantic objects.
We can use the = predicate-symbol to assert that there exists a unique object with a certain property. For example:
The sentence above can be abbreviated exists! x isa-dog(x) & loves(Mary,x)exists x { isa-dog(x) & loves(Mary,x) & forall y [ isa-dog(y) & loves(Mary,y) ] -> y=x }
A predicate maps a fixed number of objects to a truth value (true or false). We must use a predicate to represent any multi-valued function, e.g. has-daughter(Mary,Joan) has-daughter(Mary,Beth)daughter(Mary) = Beth not(Beth = Mary)
To represent a multi-valued function precisely, we must use a complex sentence such as
Be sure to understand the exact effect of the bidirectional implication <->.forall x has-daughter(Mary,x) <-> [ x=Joan \/ x=Beth ]
Definition: The semantics of a
logic is a description of how the meaning of a sentence is built up
from the meanings of its parts.
We covered the following notions:
In first-order logic, every part of a sentence that is syntactically
well-formed has a well-defined meaning iitself. We use the
notation M[ ] to talk about the meaning of a sentence, or of a part of
a sentence.
Unlike for natural languages, essentially all the logics used in AI
have a compositional semantics.
Definition: A semantics is compositional
(synonym: denotational) if the meaning of each composite part of a
sentence is a function of the meaning of its component parts.
If a semantics is compositional, and two sentence fragments have the
same meaning, then they can be interchanged everywhere even if they are
syntactically distinct.
It is very important for you to understand what the following statement means: Constant, function, and predicate symbols are uninterpreted. It means that, for example, daughter(Mary) designates a semantic entity that, as far as we know, can be the same as or different from every other semantic entity.
Typically, you have an intended interpretation in mind. You write down as many axioms as possible that are useful. An axiom is useful if it is true but not redundant, that is true in the intended interpretation but false in some unintended interpretation, so that it excludes this undesired model of the other axioms.